wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_has_ability › WordPress Function
Od6.9.0
Przestarzałyn/a
› wp_has_ability ( $name )
| Parametry: |
|
| Zobacz: |
|
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Checks if an ability is registered.
Use this for conditional logic and feature detection before attempting to retrieve or use an ability. Example: // Displays different UI based on available abilities. if ( wp_has_ability( 'premium-plugin/advanced-export' ) ) { echo 'Export with Premium Features'; } else { echo 'Basic Export'; }Powiązane Funkcje: wp_get_ability, wp_has_ability_category, wp_register_ability, wp_unregister_ability, wp_get_abilities