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

Action hook fired after deleting template file.

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

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(строка)
The deleted template type
$email(строка)
The email object

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

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

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

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