diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 4e8c2949644..277ff4f9963 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -605,11 +605,11 @@ function woocommerce_get_template( $template_name, $args = array(), $template_pa $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 ); - do_action( 'woocommerce_after_template_part', $template_name, $template_path, $located ); + do_action( 'woocommerce_after_template_part', $template_name, $template_path, $located, $args ); }