wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_has_ability_category › WordPress Function
Since6.9.0
已弃用n/a
› wp_has_ability_category ( $slug )
| 参数: |
|
| 查看: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
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'; }