breadcrumbspress_list_rules_taxonomy_path_{$tax}
Developer Knowledge Level
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Definition
apply_filters( "breadcrumbspress_list_rules_taxonomy_path_{$tax}", $paths, $obj );
Arguments
Name
Type
Description
$paths
array
Path identifiers mapped to labels.
$obj
Taxonomy
BreadcrumbsPress taxonomy data object.
Returns
Return the path choices array.
Filters the path choices shown for a specific taxonomy in administrative settings.
Replace {$tax} with the taxonomy name. Adding a choice does not by itself implement a new breadcrumb path.
Example
This example registers a callback for the concrete hook name shown; replace the suffix for your own context.
add_filter( 'breadcrumbspress_list_rules_taxonomy_path_category', function( $paths, $obj ) {
unset( $paths['taxonomy'] );
return $paths;
}, 10, 2 );