woocommerce_api_product_shipping_classes_response

woocommerce_api_product_shipping_classes_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_product_shipping_classes_response') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 3128
    			foreach ( $terms as $term_id ) {
    				$product_shipping_classes[] = current( $this->get_product_shipping_class( $term_id, $fields ) );
    			}
    
    			return array( 'product_shipping_classes' => apply_filters( 'woocommerce_api_product_shipping_classes_response', $product_shipping_classes, $terms, $fields, $this ) );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}
    
    	/**