woocommerce_copy_email_template хук-событиеWC 1.0

Action hook fired after copying email template file.

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

add_action( 'woocommerce_copy_email_template', 'wp_kama_woocommerce_copy_email_template_action', 10, 2 );

/**
 * Function for `woocommerce_copy_email_template` action-hook.
 * 
 * @param string $template_type The copied template type
 * @param string $email         The email object
 *
 * @return void
 */
function wp_kama_woocommerce_copy_email_template_action( $template_type, $email ){

	// action...
}
$template_type(строка)
The copied template type
$email(строка)
The email object

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

WC_Email::move_template_action()
woocommerce_copy_email_template
woocommerce/includes/emails/class-wc-email.php 894
do_action( 'woocommerce_copy_email_template', $template_type, $this );

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

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