Filters whether the current request can use AI.
Description
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.
Parameters
$is_enabledbool- Whether AI is available. Default to true.
Source
return (bool) apply_filters( 'wp_supports_ai', true );
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.