Hooks

All hooks are filters, and all names are built from the plugin namespace lh_breadcrumbs.

lh_breadcrumbs_group_subnav_label

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 );

lh_breadcrumbs_metabox_post_types

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.

lh_breadcrumbs_label_meta_key

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.

lh_breadcrumbs_allowed_breadcrumb_html

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.

lh_breadcrumbs_init_plugin

Return false to stop the plugin from registering any of its hooks. Default: true.