stuart-d
4/2/2013 - 11:19 AM

remove protfolio from breadcrumb trail

add_filter( 'woo_breadcrumbs_trail', 'woo_custom_filter_breadcrumbs_trail', 10 );

function woo_custom_filter_breadcrumbs_trail ( $trail ) {
  foreach ( $trail as $k => $v ) {
    if ( strtolower( strip_tags( $v ) ) == 'portfolio' ) {
      unset( $trail[$k] );
      break;
    }
  }
  
  return $trail;
} // End woo_custom_filter_breadcrumbs_trail()