Prints messages and errors which are stored in the session, then clears them.
array( 'error', 'success', 'notice'
Sortie :
@param bool $return true to return rather than echo. @since 3.5.0. @return string|void
// 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';
}
Chargement des actualités...