woocommerce_remote_logging_is_third_party_error

FILTER woocommerce\src\Internal\Logging\RemoteLogger.php (ligne 372) github
Filter to allow other plugins to overwrite the result of the third-party error check for remote logging.

Paramètres

Entrée :
true, $message, $context
Sortie :
@param bool   $is_third_party_error The result of the third-party error check.
@param string $message              The error message.
@param array  $context              The error context.

Utilisation

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

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

Actualités

Chargement des actualités...