woocommerce_order_updated_messages

FILTER woocommerce\src\Internal\Admin\Orders\Edit.php (ligne 398) github
This is used by the order edit page to show messages in the notice fields. It should be similar to post_updated_messages filter, i.e.: array(   {order_type} => array(      1 => 'Order updated.',      2 => 'Custom field updated.', ... ). The index to be displayed is computed from the $_GET['message'] variable.

Paramètres

Entrée :
array(
Sortie :
N/A

Utilisation

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

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

Actualités

Chargement des actualités...