@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-breadcrumbs/>
  a sioc:Post ;
  dc:title "Hooks" ;
  dcterms:identifier 148008 ;
  dc:modified "2026-09-21T13:54:54Z"^^xsd:dateTime ;
  dc:created "2026-09-21T13:54:54Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-breadcrumbs/hooks/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """<ul class="lh_portfolio-meta"><li><strong>Part of:</strong> <a href="https://lhero.org/portfolio/lh-breadcrumbs/">LH Breadcrumbs</a></li></ul>
<p class="wp-block-paragraph">All hooks are filters, and all names are built from the plugin namespace <code>lh_breadcrumbs</code>.</p>



<h2 class="wp-block-heading">lh_breadcrumbs_group_subnav_label</h2>



<p class="wp-block-paragraph">Filters the label of a BuddyPress group admin sub-nav crumb. Receives the label, the sub-nav slug and the group ID.</p>



<pre class="wp-block-code"><code>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 );</code></pre>



<h2 class="wp-block-heading">lh_breadcrumbs_metabox_post_types</h2>



<p class="wp-block-paragraph">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&#8217;s internal ones.</p>



<h2 class="wp-block-heading">lh_breadcrumbs_label_meta_key</h2>



<p class="wp-block-paragraph">Filters the post meta key that holds a post&#8217;s breadcrumb label override. Default: <code>_lh_breadcrumbs_label</code>. The block editor panel uses this default key, so changing it only affects server-side reads and meta registration.</p>



<h2 class="wp-block-heading">lh_breadcrumbs_allowed_breadcrumb_html</h2>



<p class="wp-block-paragraph">Filters the <code>wp_kses</code> 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.</p>



<h2 class="wp-block-heading">lh_breadcrumbs_init_plugin</h2>



<p class="wp-block-paragraph">Return false to stop the plugin from registering any of its hooks. Default: true.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """Part of: LH Breadcrumbs
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&#8217;s internal ones.



lh_breadcrumbs_label_meta_key



Filters the post meta key that holds a post&#8217;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.
""" ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
