edit_user_profile

ACTION wp-admin\user-edit.php (ligne 909) github
Fires after the 'Application Passwords' section is loaded on 'Edit User' screen. The action only fires if the current user is editing another user's 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 'edit_user_profile'
add_action('edit_user_profile', 'ma_fonction_personnalisee', 10, 1);

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

Actualités

Chargement des actualités...