woocommerce_store_api_disable_nonce_check

FILTER woocommerce\src\StoreApi\Routes\V1\AbstractCartRoute.php (ligne 293) github
Filters the Store API nonce check. This can be used to disable the nonce check when testing API endpoints via a REST API client.

Paramètres

Entrée :
false
Sortie :
@param boolean $disable_nonce_check If true, nonce checks will be disabled.
@return boolean

Utilisation

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

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

Actualités

Chargement des actualités...