woocommerce_locate_core_template
Usage
add_filter( 'woocommerce_locate_core_template', 'wp_kama_woocommerce_locate_core_template_filter', 10, 4 ); /** * Function for `woocommerce_locate_core_template` filter-hook. * * @param $core_file * @param $template * @param $template_base * @param $id * * @return */ function wp_kama_woocommerce_locate_core_template_filter( $core_file, $template, $template_base, $id ){ // filter... return $core_file; }
- $core_file
- -
- $template
- -
- $template_base
- -
- $id
- -
Where the hook is called
woocommerce_locate_core_template
woocommerce_locate_core_template
woocommerce/includes/emails/class-wc-email.php 883
$template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );
woocommerce/includes/emails/class-wc-email.php 1023
$template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );