apply_filters( ‘wp_supports_ai’, bool $is_enabled )

In this article

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

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.