wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_register_core_ability_categories › WordPress Function
Depuis6.9.0
Dépréciéen/a
› wp_register_core_ability_categories ( Pas de paramètres )
| Défini(e) dans: |
|
| Codex: | |
| Changelog: |
|
Registers the core ability categories.
Source
function wp_register_core_ability_categories(): void {
wp_register_ability_category(
'site',
array(
'label' => __( 'Site' ),
'description' => __( 'Abilities that retrieve or modify site information and settings.' ),
)
);
wp_register_ability_category(
'user',
array(
'label' => __( 'User' ),
'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
)
);
wp_register_ability_category(
'content',
array(
'label' => __( 'Content' ),
'description' => __( 'Abilities that retrieve or manage posts and other content.' ),
)
);
}