Merge pull request #4518 from a3rev/master

Apply filter for wc_get_template_part() function
This commit is contained in:
Mike Jolley 2014-01-20 04:12:35 -08:00
commit 9fe57f9dfe
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ function wc_get_template_part( $slug, $name = '' ) {
if ( !$template )
$template = locate_template( array ( "{$slug}.php", WC()->template_path() . "{$slug}.php" ) );
// Allow 3rd party plugin filter template file from their plugin
$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
if ( $template )
load_template( $template, false );
}