In WordPress, how to remove post title in new breadcrumb settings from Yoast plugin?

Hello, I have a WordPress 5.4x website. I have installed the Yoast 13.x SEO plugin and it is configured correctly.

I also have breadcrumbs on my site using this Yoast plugin. To hide the post title in the breadcrumb row, I have the following trick in WP.php functions:

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 above trick works. I am now considering updating the Yoast SEO plugin to the latest 14.x version. Does anyone have a new update to the above code to work with Yoast 14.x in case I install it later? Thanks in advance!