woocommerce_rest_prepare_customer_download

woocommerce_rest_prepare_customer_download

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rest_prepare_customer_download') is found 2 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php line 131
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
         * @param WP_REST_Response $response  The response object.
         * @param stdObject        $download  Download object used to create response.
         * @param WP_REST_Request  $request   Request object.
         */
        return apply_filters( 'woocommerce_rest_prepare_customer_download', $response, $download, $request );
    }
     
    /**
     * Prepare links for the request.
     *
     * @param stdClass $download Download object.
  • /includes/rest-api/Controllers/Version2/class-wc-rest-customer-downloads-v2-controller.php line 66
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
         * @param WP_REST_Response $response  The response object.
         * @param stdClass         $download  Download object used to create response.
         * @param WP_REST_Request  $request   Request object.
         */
        return apply_filters( 'woocommerce_rest_prepare_customer_download', $response, $download, $request );
    }
     
    /**
     * Get the Customer Download's schema, conforming to JSON Schema.
     *
     * @return array