How to Remove Shop item link from BreadcrumbList schema on Product page

Schema Pro allows you to Remove Shop link item from BreadcrumbList schema type.

You will need to use wp_schema_pro_link_to_frontpage filter to be able to Remove shop link item.

Example: Add the following code to your functions.php file.

add_filter( 'wp_schema_pro_link_to_specificpage', 'my_function', 10, 3 );
function my_function( $bool, $post_type, $page_title) {
  if( $post_type == 'product' ){
     return false;
  }
}

Here is how the Shop link item will be removed after you add the above code to your functions.php file.

Not the solution you are looking for? Check other articles, or open a support ticket.