Breadcrumb defaults filter

This commit is contained in:
Geert De Deckere 2012-12-28 17:06:56 +01:00
parent 187f41b520
commit 239aa1e189
1 changed files with 9 additions and 9 deletions

View File

@ -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 );
} }