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() ) {
|
||||
|
||||
$defaults = array(
|
||||
'delimiter' => ' › ',
|
||||
'wrap_before' => '<div id="breadcrumb" itemprop="breadcrumb">',
|
||||
'wrap_after' => '</div>',
|
||||
'before' => '',
|
||||
'after' => '',
|
||||
'home' => null
|
||||
);
|
||||
$defaults = apply_filters( 'woocommerce_breadcrumb_defaults', array(
|
||||
'delimiter' => ' › ',
|
||||
'wrap_before' => '<div id="breadcrumb" itemprop="breadcrumb">',
|
||||
'wrap_after' => '</div>',
|
||||
'before' => '',
|
||||
'after' => '',
|
||||
'home' => null,
|
||||
) );
|
||||
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
woocommerce_get_template( 'shop/breadcrumb.php', $args );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue