woocommerce_customer_object_updated_props

ACTION woocommerce\includes\data-stores\class-wc-customer-data-store.php (ligne 324) github
Helper method that updates all the meta for a customer. Used for update & create.

Paramètres

Entrée :
$customer, $updated_props
Sortie :
@param WC_Customer $customer Customer object.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_customer_object_updated_props'
add_action('woocommerce_customer_object_updated_props', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($customer, $updated_props) {
    // Votre code ici
    error_log('Hook woocommerce_customer_object_updated_props déclenché');
}

Actualités

Chargement des actualités...