wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_has_ability_category › WordPress Function
Seit6.9.0
Veraltetn/v
› wp_has_ability_category ( $slug )
| Parameter: |
|
| Siehe: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Checks if an ability category is registered.
Use this for conditional logic and feature detection before attempting to retrieve or use an ability category. Example: // Displays different UI based on available ability categories. if ( wp_has_ability_category( 'premium-features' ) ) { echo 'Premium Features Available'; } else { echo 'Standard Features'; }