wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_supports_ai › WordPress过滤钩子

Since7.0.0
已弃用n/a
› apply_filters( 'wp_supports_ai', true )
参数:
  • () is_enabled Whether AI is available. Default to true.
    Required: Yes
定义在:
文档:

Filters whether the current request can use AI.

This allows plugins and 3rd-party code to disable AI features on a per-request basis, or to even override explicit preferences defined by the site owner.




源码

return (bool) apply_filters( 'wp_supports_ai', true );