I have a Wordpress 5.4x website. I have installed Yoast 13.x SEO plugin into it and it's configured OK.
I also have breadcrumbs on my site using this Yoast plugin. To hide the title of the post in the breadcrumb's row, I have the following hack in WP's functions.php:
function remove_breadcrumb_title( $link_output) {
if(strpos( $link_output, 'breadcrumb_last' ) !== false ) {
$link_output = '';
}
return $link_output;
}
add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' );
So the hack above works. I now am considering updating Yoast SEO plugin to latest 14.x. Does anyone have a new update to the code above to work with Yoast 14.x in case I install it later?