Replies: 0
I need to disable to Yoast plugin’s title function on one page. I’m attempting to do it with this snippet, but haven’t been successful.
What do I need to do to make this function work properly? Does anyone know of another way to do this effectively?
add_action('template_redirect','remove_wpseo');
function remove_wpseo(){
if ( is_page(16732)) {
global $wpseo_front;
remove_filter( 'wp_title', array( $wpseo_front, 'title' ), 15 );
}
return $title;
}