Fires before the page loads on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.
$user_id
Sortie :
@param int $user_id The user ID.
// 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é');
}
Chargement des actualités...