woocommerce_api_create_product_shipping_class_data

woocommerce_api_create_product_shipping_class_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_shipping_class_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 3207
    				'parent'      => 0,
    			);
    
    			$data = wp_parse_args( $data['product_shipping_class'], $defaults );
    			$data = apply_filters( 'woocommerce_api_create_product_shipping_class_data', $data, $this );
    
    			// Check parent.
    			$data['parent'] = absint( $data['parent'] );
    			if ( $data['parent'] ) {
    				$parent = get_term_by( 'id', $data['parent'], 'product_shipping_class' );
    				if ( ! $parent ) {