Deprecated
This method has been deprecated.
AnsPress_Theme::wpseo_title( string $title )
Description #
Filter wpseo plugin title.
Parameters #
- $titlestring (Required) Page title.
Source #
File: includes/class-theme.php
public static function wpseo_title( $title ) { if ( is_anspress() ) { remove_filter( 'wpseo_title', array( __CLASS__, 'wpseo_title', )); $new_title = ap_page_title(); if ( strpos( $title, 'ANSPRESS_TITLE' ) !== false ) { $new_title = str_replace( 'ANSPRESS_TITLE', $new_title, $title ) . ' | ' . get_bloginfo( 'name' ); } else { $new_title = $new_title . ' | ' . get_bloginfo( 'name' ); } $new_title = apply_filters( 'ap_wpseo_title', $new_title ); return $new_title; } return $title; }
Expand full source code Collapse full source code View on GitHub: includes/class-theme.php:120
Add your comment