woocommerce_api_create_product_attribute_term_data

woocommerce_api_create_product_attribute_term_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_create_product_attribute_term_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2864
    			if ( ! $taxonomy ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_product_attribute_id', __( 'A product attribute with the provided ID could not be found', 'woocommerce' ), 404 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_create_product_attribute_term_data', $data, $this );
    
    			// Check if attribute term name is specified.
    			if ( ! isset( $data['name'] ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_missing_product_attribute_term_name', sprintf( __( 'Missing parameter %s', 'woocommerce' ), 'name' ), 400 );
    			}