woocommerce_api_create_product_attribute

woocommerce_api_create_product_attribute

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_create_product_attribute') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 2022
    			}
    
    			$id = $wpdb->insert_id;
    
    			do_action( 'woocommerce_api_create_product_attribute', $id, $data );
    
    			// Clear transients
    			delete_transient( 'wc_attribute_taxonomies' );
    			WC_Cache_Helper::invalidate_cache_group( 'woocommerce-attributes' );
    
    			$this->server->send_status( 201 );
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 2575
    			}
    
    			$id = $wpdb->insert_id;
    
    			do_action( 'woocommerce_api_create_product_attribute', $id, $data );
    
    			// Clear transients.
    			wp_schedule_single_event( time(), 'woocommerce_flush_rewrite_rules' );
    			delete_transient( 'wc_attribute_taxonomies' );
    			WC_Cache_Helper::invalidate_cache_group( 'woocommerce-attributes' );