woocommerce_copy_email_template
Action hook fired after copying email template file.
Usage
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(string)
- The copied template type
- $email(string)
- The email object
Where the hook is called
woocommerce_copy_email_template
woocommerce/includes/emails/class-wc-email.php 1367
do_action( 'woocommerce_copy_email_template', $template_type, $this );