woocommerce_notice_types

FILTER woocommerce\includes\wc-notice-functions.php (ligne 150) github
Prints messages and errors which are stored in the session, then clears them.

Paramètres

Entrée :
array( 'error', 'success', 'notice'
Sortie :
@param bool $return true to return rather than echo. @since 3.5.0.
@return string|void

Utilisation

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

function ma_fonction_filtre(array( 'error') {
    // Modifier la valeur
    return array( 'error';
}

Actualités

Chargement des actualités...