pass $args to woocommerce_before_template_part action
This commit is contained in:
parent
10ff7d3abd
commit
bb35a00620
|
@ -605,11 +605,11 @@ function woocommerce_get_template( $template_name, $args = array(), $template_pa
|
||||||
|
|
||||||
$located = woocommerce_locate_template( $template_name, $template_path, $default_path );
|
$located = woocommerce_locate_template( $template_name, $template_path, $default_path );
|
||||||
|
|
||||||
do_action( 'woocommerce_before_template_part', $template_name, $template_path, $located );
|
do_action( 'woocommerce_before_template_part', $template_name, $template_path, $located, $args );
|
||||||
|
|
||||||
include( $located );
|
include( $located );
|
||||||
|
|
||||||
do_action( 'woocommerce_after_template_part', $template_name, $template_path, $located );
|
do_action( 'woocommerce_after_template_part', $template_name, $template_path, $located, $args );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue