woocommerce_attribute_updated action-hookWC 1.0

Attribute updated.

Usage

add_action( 'woocommerce_attribute_updated', 'wp_kama_woocommerce_attribute_updated_action', 10, 3 );

/**
 * Function for `woocommerce_attribute_updated` action-hook.
 * 
 * @param int    $id       Added attribute ID.
 * @param array  $data     Attribute data.
 * @param string $old_slug Attribute old name.
 *
 * @return void
 */
function wp_kama_woocommerce_attribute_updated_action( $id, $data, $old_slug ){

	// action...
}
$id(int)
Added attribute ID.
$data(array)
Attribute data.
$old_slug(string)
Attribute old name.

Where the hook is called

wc_create_attribute()
woocommerce_attribute_updated
woocommerce/includes/wc-attribute-functions.php 559
do_action( 'woocommerce_attribute_updated', $id, $data, $old_slug );

Where the hook is used in WooCommerce

Usage not found.