Easy way to disable AI features
-
I have come up with an easy way to remove or disable the AI features in Elementor, because the plugin makes it a per-user setting now. This will remove the “Edit with AI”-type messages throughout Elementor. If you want to disable the AI features for all users you can add this code to your theme’s functions.php file or a custom plugin:
// Disable Elementor AI features for all users
add_filter( 'get_user_option_elementor_enable_ai', '__return_zero' );
function hide_elementor_ai_user_preferences() {
global $pagenow;
if ( 'profile.php' === $pagenow ) {
echo '<style>
tr:has( + tr #elementor_enable_ai),
tr:has( #elementor_enable_ai ) {
display: none;
}
</style>';
}
}
add_action( 'admin_head', 'hide_elementor_ai_user_preferences' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.