woocommerce_add_message

FILTER woocommerce\includes\wc-notice-functions.php (ligne 86) github
Add and store a notice.

Paramètres

Entrée :
$message
Sortie :
@param string $message     The text to display in the notice.
@param string $notice_type Optional. The name of the notice type - either error, success or notice.
@param array  $data        Optional notice data.

Utilisation

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

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

Actualités

Chargement des actualités...