breadcrumbspress_query_is_kob_author
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
Arguments
Returns
Filters whether BreadcrumbsPress recognizes the request as a GD Knowledge Base author page.
BreadcrumbsPress casts the filtered value to boolean. This changes its internal request classification and can affect which visibility settings and breadcrumb builders are selected. Register the filter before the plugin evaluates the query; keep unrelated conditions intact. The default detection also checks that the relevant integration is available.
Example
This example registers a callback for the filter. Adapt the values and conditions to your site.
add_filter( 'breadcrumbspress_query_is_kob_author', function( $is, $author ) {
if ( is_page( 'example-excluded-page' ) ) {
return false;
}
return $is;
}, 10, 2 );