Skip to content

Instantly share code, notes, and snippets.

@felipe-pita
Created August 13, 2019 23:48
Show Gist options
  • Save felipe-pita/43061e2e173c9db0e2bfd1154e534f39 to your computer and use it in GitHub Desktop.
Save felipe-pita/43061e2e173c9db0e2bfd1154e534f39 to your computer and use it in GitHub Desktop.
add_filter( 'wpseo_breadcrumb_single_link' ,'wpseo_remove_breadcrumb_link', 10 ,2);
function wpseo_remove_breadcrumb_link( $link_output , $link ){
$text_to_remove = 'Produtos';
if( $link['text'] == $text_to_remove ) {
$link_output = '';
}
return $link_output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment