wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_has_ability_category › WordPress Function
Da6.9.0
Deprecaton/a
› wp_has_ability_category ( $slug )
| Parametri: |
|
| Vedi: |
|
| Ritorna: |
|
| Definito a: |
|
| 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'; }