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.8.1

do_action('woocommerce_attribute_updated') is found 1 times:

  • /includes/wc-attribute-functions.php line 561
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    * @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: