Merge pull request #5872 from Ninos/master

Add filter: wc_get_template
This commit is contained in:
Mike Jolley 2014-07-22 10:48:12 +01:00
commit 2155b30065
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ function wc_get_template( $template_name, $args = array(), $template_path = '',
return;
}
// Allow 3rd party plugin filter template file from their plugin
$located = apply_filters( 'wc_get_template', $located, $template_name, $args, $template_path, $default_path );
do_action( 'woocommerce_before_template_part', $template_name, $template_path, $located, $args );
include( $located );