mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-10-03 12:28:10 +08:00
Disable Elementor tracking
This commit is contained in:
parent
3ad341cc58
commit
513067f880
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
add_action(
|
||||
'init',
|
||||
static function () {
|
||||
if (!did_action('elementor/loaded')) {
|
||||
return;
|
||||
}
|
||||
require_once __DIR__.'/elementor/Admin_Notices.php';
|
||||
require_once __DIR__.'/elementor/Feedback.php';
|
||||
require_once __DIR__.'/elementor/Promotions.php';
|
||||
|
@ -16,3 +19,11 @@ add_action(
|
|||
-1,
|
||||
0
|
||||
);
|
||||
|
||||
// Disable tracking.
|
||||
add_filter(
|
||||
'pre_option_elementor_allow_tracking',
|
||||
'__return_empty_string',
|
||||
10,
|
||||
0
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue