woocommerce_rest_prepare_product_attribute

woocommerce_rest_prepare_product_attribute

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_prepare_product_attribute') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php line 452
    		 * @param WP_REST_Response  $response  The response object.
    		 * @param object            $item      The original attribute object.
    		 * @param WP_REST_Request   $request   Request used to generate the response.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_product_attribute', $response, $item, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param object $attribute Attribute object.