woocommerce_breadcrumb_defaults
Output the WooCommerce Breadcrumb.
Usage
add_filter( 'woocommerce_breadcrumb_defaults', 'wp_kama_woocommerce_breadcrumb_defaults_filter' ); /** * Function for `woocommerce_breadcrumb_defaults` filter-hook. * * @param array $args Arguments. * * @return array */ function wp_kama_woocommerce_breadcrumb_defaults_filter( $args ){ // filter... return $args; }
- $args(array)
- Arguments.
Where the hook is called
woocommerce/includes/wc-template-functions.php 2359-2369
apply_filters( 'woocommerce_breadcrumb_defaults', array( 'delimiter' => ' / ', 'wrap_before' => '<nav class="woocommerce-breadcrumb" aria-label="Breadcrumb">', 'wrap_after' => '</nav>', 'before' => '', 'after' => '', 'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ), ) )