woocommerce_attribute_added

woocommerce_attribute_added

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_attribute_added') is found 1 times:

  • /includes/wc-attribute-functions.php line 537
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
         *
         * @param int   $id   Added attribute ID.
         * @param array $data Attribute data.
         */
        do_action( 'woocommerce_attribute_added', $id, $data );
    } else {
        $results = $wpdb->update(
            $wpdb->prefix . 'woocommerce_attribute_taxonomies',
            $data,
            array( 'attribute_id' => $id ),
            $format,

See this hook used in plugins: