Changing the argument of a function

This is part of a function in Woocommerce:

function woocommerce_breadcrumb( $args = array() ) {
$args = wp_parse_args( $args, apply_filters( ‘woocommerce_breadcrumb_defaults’, array(
‘delimiter’ => ‘ / ’,
‘wrap_before’ => ‘<nav class=”woocommerce-breadcrumb”>’,
‘wrap_after’ => ‘</nav>’,
‘before’ => ”,
‘after’ => ”,
‘home’ => _x( ‘Home’, ‘breadcrumb’, ‘woocommerce’ ),
) ) );

//blah blah blah

}

I am wondering how I can change the “wrap_before” in my child-theme without touching the function itself. First I though it must be with apply_filter but it didn’t look right.

I am certain that this question has been asked many times but I couldn’t find the relevant keywords for that.

Read more here:: Changing the argument of a function

Leave a Reply

Your email address will not be published. Required fields are marked *