wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_get_ability › WordPress Function
Depuis6.9.0
Dépréciéen/a
› wp_get_ability ( $name )
| Paramètres: |
|
| Voir: |
|
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Retrieves a registered ability.
Returns the ability instance for inspection or use. The instance provides access to the ability's configuration, metadata, and execution methods. Example: // Prints information about a registered ability. $ability = wp_get_ability( 'my-plugin/export-data' ); if ( $ability ) { echo $ability->get_label() . ': ' . $ability->get_description(); }Fonctions en relation: wp_get_abilities, wp_has_ability, wp_register_ability, wp_get_ability_category, wp_unregister_ability