woocommerce_delete_email_template
Action hook fired after deleting template file.
Usage
add_action( 'woocommerce_delete_email_template', 'wp_kama_woocommerce_delete_email_template_action', 10, 2 );
/**
* Function for `woocommerce_delete_email_template` action-hook.
*
* @param string $template The deleted template type
* @param string $email The email object
*
* @return void
*/
function wp_kama_woocommerce_delete_email_template_action( $template, $email ){
// action...
}
- $template(string)
- The deleted template type
- $email(string)
- The email object
Where the hook is called
woocommerce_delete_email_template
woocommerce/includes/emails/class-wc-email.php 1419
do_action( 'woocommerce_delete_email_template', $template_type, $this );