breadcrumbspress_builder_posts_crumb_{$key}
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_builder_posts_crumb_{$key}", $include );
Arguments
Name
Type
Description
$include
boolean
The configured rule for the path.
Returns
Return a truthy value to include the posts-page crumb, or false to omit it.
Filters whether the configured posts-page breadcrumb is included in an applicable trail.
The hook runs only when a posts page exists. The current builder uses date_with_posts and author_with_posts as keys. Replace {$key} with the applicable key.
Example
This example registers a callback for the concrete hook name shown; replace the suffix for your own context.
add_filter( 'breadcrumbspress_builder_posts_crumb_date_with_posts', function( $include ) {
return false;
}, 10, 1 );