wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_has_ability_category › WordPress Function
Since6.9.0
Deprecatedn/a
› wp_has_ability_category ( $slug )
| Parameters: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
| 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'; }