profile_personal_options

ACTION wp-admin\user-edit.php (ligne 437) github
Fires after the 'Personal Options' settings table on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.

Paramètres

Entrée :
$profile_user
Sortie :
@param WP_User $profile_user The current WP_User object.

Utilisation

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

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

Actualités

Chargement des actualités...