AnsPress_Theme::ap_title_parts( array $title )

Description #

Filter document_title_parts.

Parameters #

  • $title
    array (Required) The document title parts.

Changelog #

VersionDescription
4.4.0Introduced.

Source #

File: includes/class-theme.php

	public static function ap_title_parts( $title ) {
		if ( is_anspress() ) {
			remove_filter( 'document_title_parts', array( __CLASS__, 'ap_title_parts' ) );

			if ( is_question() ) {
				$title['title'] = ap_question_title_with_solved_prefix();
			}
		}

		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