Disable AI Support and Remove Connectors Screen in WordPress
A new function has been created to disable AI support and remove the connectors screen in WordPress. This change redirects users from the connectors screen back to the main dashboard. The update is aimed at users who prefer not to have AI features integrated into their WordPress sites.
- ▪The function mytheme_admin_redirects redirects the connectors screen to the main dashboard.
- ▪The function mytheme_remove_connectors_screen removes the connectors page from the WordPress dashboard menu.
- ▪AI support can be disabled by defining WP_AI_SUPPORT as false in the configuration.
Opening excerpt (first ~120 words) tap to expand
Instantly share code, notes, and snippets. maddisondesigns/functions.php Last active May 27, 2026 03:33 Show Gist options Download ZIP Star 2 (2) You must be signed in to star a gist Fork 0 (0) You must be signed in to fork a gist Embed Select an option Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone using the web URL. No results found Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/maddisondesigns/276af3c3781cde053c4855cd1da37cac.js"></script> Save maddisondesigns/276af3c3781cde053c4855cd1da37cac to your computer and use it in GitHub Desktop. Code Revisions 2 Stars 2 Embed Select an option Embed Embed this gist in your website. Share Copy sharable link for this gist.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Gist.