wp_roles_init

ACTION wp-includes\class-wp-roles.php (ligne 325) github
Fires after the roles have been initialized, allowing plugins to add their own roles.

Paramètres

Entrée :
$this
Sortie :
@param WP_Roles $wp_roles A reference to the WP_Roles object.

Utilisation

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

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

Actualités

Chargement des actualités...