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.9.8.1

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
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
         * @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.