Skip to content

Instantly share code, notes, and snippets.

View mateitudor's full-sized avatar
🖤
+ Code

Tudor Matei mateitudor

🖤
+ Code
View GitHub Profile
@mateitudor
mateitudor / remove_elementor_ai.php
Created November 3, 2024 15:42
Remove Elementor AI including the silly per user checkboxes like "Enable Elementor AI functionality"
function disable_elementor_ai_module() {
if ( class_exists( 'Elementor\Plugin' ) && isset( \Elementor\Plugin::$instance->modules_manager ) ) {
$modules_manager = \Elementor\Plugin::$instance->modules_manager;
// Disable AI module entirely by removing its registration
remove_all_actions( 'personal_options' );
remove_all_actions( 'personal_options_update' );
remove_all_actions( 'edit_user_profile_update' );
// Disable AI option across all users
function t(t) {
return t && t.__esModule ? t.default : t;
}
/**
* @license
* Copyright 2010-2021 Three.js Authors
* SPDX-License-Identifier: MIT
*/ const e = "136",
n = 100,
i = 301,
@mateitudor
mateitudor / temp.js
Created February 25, 2023 18:20
Temporary
function t(t) {
return t && t.__esModule ? t.default : t
}
/**
* @license
* Copyright 2010-2021 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const e = "136",
n = 100,