woocommerce_delete_email_template action-hookWC 1.0

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

WC_Email::delete_template_action()
woocommerce_delete_email_template
woocommerce/includes/emails/class-wc-email.php 926
do_action( 'woocommerce_delete_email_template', $template_type, $this );

Where the hook is used in WooCommerce

Usage not found.