woocommerce_rest_prepare_data_download_ip

FILTER woocommerce\src\Admin\API\DataDownloadIPs.php (ligne 110) github
Filter the list returned from the API.

Paramètres

Entrée :
$response, $item, $request
Sortie :
@param WP_REST_Response $response The response object.
@param array            $item     The original item.
@param WP_REST_Request  $request  Request used to generate the response.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_rest_prepare_data_download_ip'
add_filter('woocommerce_rest_prepare_data_download_ip', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($response) {
    // Modifier la valeur
    return $response;
}

Actualités

Chargement des actualités...