diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 4cff1b1d4a6..10107e8149c 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -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 ); }