woocommerce_attribute_updated

woocommerce_attribute_updated

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_attribute_updated') is found 1 times:

  • /includes/wc-attribute-functions.php line 559
    		 * @param int    $id       Added attribute ID.
    		 * @param array  $data     Attribute data.
    		 * @param string $old_slug Attribute old name.
    		 */
    		do_action( 'woocommerce_attribute_updated', $id, $data, $old_slug );
    
    		if ( $old_slug !== $slug ) {
    			// Update taxonomies in the wp term taxonomy table.
    			$wpdb->update(
    				$wpdb->term_taxonomy,
    				array( 'taxonomy' => wc_attribute_taxonomy_name( $data['attribute_name'] ) ),
    

See this hook used in plugins: