Deprecated

This method has been deprecated.

AnsPress_Theme::the_title( string $title, string $id = null )

Description #

Filter the_title().

Parameters #

  • $title
    string (Required) Current page/post title.
  • $id
    string (Optional) Post ID. Default value: null

Changelog #

VersionDescription
4.1.1Introduced.

Source #

File: includes/class-theme.php

	public static function the_title( $title, $id = null ) {
		_deprecated_function( __FUNCTION__, '4.1.1' );

		if ( ap_opt( 'base_page' ) == $id ) { // WPCS: loose comparison ok.
			remove_filter( 'the_title', [ __CLASS__, 'the_title' ] );
			return ap_page_title();
		}

		return $title;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment