AnsPress_Theme::ap_title( string $title )

Description #

Filter wp_title.

Parameters #

  • $title
    string (Required) WP page title.

Changelog #

VersionDescription
4.1.1Introduced.

Source #

File: includes/class-theme.php

156
157
158
159
160
161
162
163
164
165
166
public static function ap_title( $title ) {
    if ( is_anspress() ) {
        remove_filter( 'wp_title', array( __CLASS__, 'ap_title' ) );
 
        if ( is_question() ) {
            return 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