wc_get_template filter-hook . WC 1.0
Allow 3rd party plugin filter template file from their plugin.
Usage
add_filter( 'wc_get_template', 'filter_function_name_57', 10, 5 ); function filter_function_name_57( $template, $template_name, $args, $template_path, $default_path ){ // filter... return $template; }
- $template
- -
- $template_name
- -
- $args
- -
- $template_path
- -
- $default_path
- -
Where the hook is called
wc_get_template
woocommerce/includes/wc-core-functions.php 313
$filter_template = apply_filters( 'wc_get_template', $template, $template_name, $args, $template_path, $default_path );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php 1051
$located = apply_filters( 'wc_get_template', $file, $file, array(), WC()->template_path(), WC()->plugin_path() . '/templates/' );