If you’ve been using Elementor recently, you’ve likely noticed a wave of AI features being integrated across your WordPress site. With AI buttons popping up everywhere—from the media library to attachments and editor itself—these new features are hard to miss. While some users are excited about the added functionality, others find the presence of these buttons intrusive, especially if AI isn’t a priority in their workflow.
The Frustration: No Early Option to Disable AI
Initially, Elementor did not provide a way to remove these AI buttons, leaving many users frustrated. As a result, support tickets and GitHub issues piled up, with many users requesting a way to disable AI across their sites. If you’re one of the users looking to turn off Elementor’s AI buttons, you’ll be pleased to know that Elementor has now introduced an option to disable this feature.
Disabling Elementor AI Per User
Elementor has added an option in the user settings, allowing administrators to disable AI features for specific user profiles. Here’s how you can do it:
- Go to Users in the WordPress admin dashboard.
- Select the user profile for which you want to disable Elementor AI.
- Uncheck the Enable Elementor AI functionality option.
This solution works if you only need to disable AI for a few users. However, if you have multiple users with permissions such as editor or admin, disabling this feature individually for each user can be time-consuming. Additionally, users with permission to edit their own profiles could re-enable the AI feature, which may not be ideal in some cases.
A Site-Wide Solution to Disable Elementor AI
One of my clients recently requested a complete, site-wide deactivation of Elementor’s AI features for all users. After examining Elementor’s codebase, I discovered a way to achieve this through a simple code snippet. By adding the code below to your site, you can effectively disable all AI functionality for all users, eliminating the need to manage permissions on a user-by-user basis.
Here’s the code to add:
function disable_elementor_ai() {
return null;
}
add_filter('get_user_option_' . Elementor\Modules\Ai\Preferences::ENABLE_AI, 'disable_elementor_ai');
Code language: PHP (php)
How to Use This Code
- Go to Appearance > Theme File Editor in your WordPress dashboard (or use an FTP client if you’re more comfortable with that approach).
- Open your theme’s functions.php file.
- Add the code snippet at the end of the file.
- Save the changes.
This code effectively overrides Elementor’s AI functionality for all users, ensuring that no AI buttons or options appear across your site.
Final Thoughts
With this site-wide solution, you can keep your site clean and free of unwanted AI features. Let me know in the comments if you found this guide helpful!
Leave a Reply