woocommerce_locate_core_template хук-фильтрWC 1.0

Locate template file.

Использование

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
-

Где вызывается хук

WC_Email::move_template_action()
woocommerce_locate_core_template
WC_Email::admin_options()
woocommerce_locate_core_template
woocommerce/includes/emails/class-wc-email.php 869
$template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );
woocommerce/includes/emails/class-wc-email.php 1009
$template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );

Где используется хук в WooCommerce

Использование не найдено.