Fires after the roles have been initialized, allowing plugins to add their own roles.
$this
Sortie :
@param WP_Roles $wp_roles A reference to the WP_Roles object.
// 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é');
}
Chargement des actualités...