Filter customer download data returned from the REST API.
$response, $download, $request
Sortie :
@param WP_REST_Response $response The response object. @param stdClass $download Download object used to create response. @param WP_REST_Request $request Request object.
// Modifier la valeur avec le filtre 'woocommerce_rest_prepare_customer_download'
add_filter('woocommerce_rest_prepare_customer_download', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($response) {
// Modifier la valeur
return $response;
}
Chargement des actualités...