woocommerce_before_attribute_delete action-hookWC 1.0

Before deleting an attribute.

Usage

add_action( 'woocommerce_before_attribute_delete', 'wp_kama_woocommerce_before_attribute_delete_action', 10, 3 );

/**
 * Function for `woocommerce_before_attribute_delete` action-hook.
 * 
 * @param int    $id       Attribute ID.
 * @param string $name     Attribute name.
 * @param string $taxonomy Attribute taxonomy name.
 *
 * @return void
 */
function wp_kama_woocommerce_before_attribute_delete_action( $id, $name, $taxonomy ){

	// action...
}
$id(int)
Attribute ID.
$name(string)
Attribute name.
$taxonomy(string)
Attribute taxonomy name.

Where the hook is called

wc_delete_attribute()
woocommerce_before_attribute_delete
woocommerce/includes/wc-attribute-functions.php 684
do_action( 'woocommerce_before_attribute_delete', $id, $name, $taxonomy );

Where the hook is used in WooCommerce

Usage not found.