woocommerce_api_edit_product_shipping_class_data

woocommerce_api_edit_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_edit_product_shipping_class_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 3260
    			if ( ! current_user_can( 'manage_product_terms' ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_user_cannot_edit_product_shipping_class', __( 'You do not have permission to edit product shipping classes', 'woocommerce' ), 401 );
    			}
    
    			$data           = apply_filters( 'woocommerce_api_edit_product_shipping_class_data', $data, $this );
    			$shipping_class = $this->get_product_shipping_class( $id );
    
    			if ( is_wp_error( $shipping_class ) ) {
    				return $shipping_class;
    			}