wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_get_ability › WordPress Function
Seit6.9.0
Veraltetn/v
› wp_get_ability ( $name )
| Parameter: |
|
| Siehe: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| 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(); }Ähnliche Funktionen: wp_get_abilities, wp_register_ability, wp_has_ability, wp_get_ability_category, wp_unregister_ability