All hooks are filters, and all names are built from the plugin namespace lh_breadcrumbs.
Filters the label of a BuddyPress group admin sub-nav crumb. Receives the label, the sub-nav slug and the group ID.
add_filter( 'lh_breadcrumbs_group_subnav_label', function( $label, $subnav_slug, $group_id ) {
if ( $subnav_slug === 'my-custom-screen' ) {
return __( 'My Custom Screen', 'my-plugin' );
}
return $label;
}, 10, 3 );
Filters the post types that get the Breadcrumb Label panel in the block editor (and whose label override meta is registered). Default: every public post type except BuddyPress’s internal ones.
Filters the post meta key that holds a post’s breadcrumb label override. Default: _lh_breadcrumbs_label. The block editor panel uses this default key, so changing it only affects server-side reads and meta registration.
Filters the wp_kses allowlist used when the breadcrumb block is printed in place of the native WooCommerce breadcrumb. Default: the post allowlist plus the Schema.org attributes and position meta tag the plugin adds.
Return false to stop the plugin from registering any of its hooks. Default: true.