personal_options_update

ACTION wp-admin\user-edit.php (ligne 149) github
Fires before the page loads on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.

Paramètres

Entrée :
$user_id
Sortie :
@param int $user_id The user ID.

Utilisation

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

function ma_fonction_personnalisee($user_id) {
    // Votre code ici
    error_log('Hook personal_options_update déclenché');
}

Actualités

Chargement des actualités...