Breadcrumb defaults filter
This commit is contained in:
parent
187f41b520
commit
239aa1e189
|
@ -945,16 +945,16 @@ if ( ! function_exists( 'woocommerce_breadcrumb' ) ) {
|
||||||
*/
|
*/
|
||||||
function woocommerce_breadcrumb( $args = array() ) {
|
function woocommerce_breadcrumb( $args = array() ) {
|
||||||
|
|
||||||
$defaults = array(
|
$defaults = apply_filters( 'woocommerce_breadcrumb_defaults', array(
|
||||||
'delimiter' => ' › ',
|
'delimiter' => ' › ',
|
||||||
'wrap_before' => '<div id="breadcrumb" itemprop="breadcrumb">',
|
'wrap_before' => '<div id="breadcrumb" itemprop="breadcrumb">',
|
||||||
'wrap_after' => '</div>',
|
'wrap_after' => '</div>',
|
||||||
'before' => '',
|
'before' => '',
|
||||||
'after' => '',
|
'after' => '',
|
||||||
'home' => null
|
'home' => null,
|
||||||
);
|
) );
|
||||||
|
|
||||||
$args = wp_parse_args( $args, $defaults );
|
$args = wp_parse_args( $args, $defaults );
|
||||||
|
|
||||||
woocommerce_get_template( 'shop/breadcrumb.php', $args );
|
woocommerce_get_template( 'shop/breadcrumb.php', $args );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue