woocommerce_structured_data_breadcrumblist
The WooCommerce woocommerce structured data breadcrumblist hook.
Description
apply_filters( 'woocommerce_structured_data_breadcrumblist', (unknown) $markup, (unknown) $breadcrumbs );
Parameters (2)
- 0. $markup (unknown)
- The markup.
- 1. $breadcrumbs (unknown)
- The breadcrumbs.
Usage
- To run the hook, copy the example below.
- $markup = apply_filters( 'woocommerce_structured_data_breadcrumblist', $markup, $breadcrumbs );
- if ( !empty( $markup ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_structured_data_breadcrumblist callback
- function filter_woocommerce_structured_data_breadcrumblist( $markup, $breadcrumbs ) {
- // make filter magic happen here...
- return $markup;
- };
- // add the filter
- add_filter( 'woocommerce_structured_data_breadcrumblist', 'filter_woocommerce_structured_data_breadcrumblist', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_structured_data_breadcrumblist', 'filter_woocommerce_structured_data_breadcrumblist', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /includes/class-wc-structured-data.php
- $this->set_data( apply_filters( 'woocommerce_structured_data_breadcrumblist', $markup, $breadcrumbs ) );