I have installed the wordpress SEO Yoast plugin on my blog. I want to avoid using SEO Yoast generated title for my blog. Is there any way I can remove filter that are being applied by SEO Yoast plugin for wp_title()
?
I want to use the page title as SEO title.
add_filter( 'wp_title', 'te_before_filter_wp_title' );
function te_before_filter_wp_title( $title ) {
echo $title;
//exit;
return $title;
}
add_filter( 'wp_title', 'te_after_filter_wp_title' ,9999);
function te_after_filter_wp_title( $title ) {
echo $title;
//exit;
return $title;
}
I have write this code to test the title. And title in te_before_filter_wp_title
and in te_after_filter_wp_title
is different. So it is being modified by SEO YOAST plugin.