[wp-trac] [WordPress Trac] #64706: A single config option to disable all LLM related features
WordPress Trac
noreply at wordpress.org
Thu Mar 19 13:56:03 UTC 2026
#64706: A single config option to disable all LLM related features
--------------------------------------+-------------------------
Reporter: romainmrhenry | Owner: justlevine
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: AI | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"62067" 62067]:
{{{
#!CommitTicketReference repository="" revision="62067"
AI: Introduce `wp_supports_ai()` function to control LLM-related features.
This includes a `WP_AI_SUPPORT` constant and a `wp_supports_ai` filter.
When false,
- `_wp_connectors_get_provider_settings()` will return an empty array
(short-circuiting the other functionality).
- `WP_AI_Client_Prompt_Builder()` will short-circuit the construction with
a `WP_Error()`. `wp_ai_client_prompt()` will still return an instance, to
allow for fluidity to remain intact.
Priority: `WP_AI_SUPPORT` > `add_filter( 'wp_supports_ai', ...) >
(default: true)`
Follow-up to [61943], [61749], [61943].
Props justlevine, westonruter, gziolo, flixos90, romainmrhenry, ahortin,
chrismcelroyseo, SergeyBiryukov.
See #64706.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64706#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list