woocommerce_user_last_update_fields

FILTER woocommerce\includes\wc-user-functions.php (ligne 969) github
Hooks into the update user meta function to set the user last updated timestamp.

Paramètres

Entrée :
array( 'first_name', 'last_name'
Sortie :
@param int    $meta_id     ID of the meta object that was changed.
@param int    $user_id     The user that was updated.
@param string $meta_key    Name of the meta key that was changed.
@param mixed  $_meta_value Value of the meta that was changed.

Utilisation

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

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

Actualités

Chargement des actualités...