mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
https://elementor.com/help/share-usage-data/ https://elementor.com/help/settings/ https://code.elementor.com/classes/elementor-tracker/
15 lines
424 B
Text
15 lines
424 B
Text
$option_name = 'elementor_allow_tracking' ;
|
|
$new_value = 'no' ;
|
|
|
|
if ( get_option( $option_name ) !== false ) {
|
|
|
|
// The option already exists, so we just update it.
|
|
update_option( $option_name, $new_value );
|
|
|
|
} else {
|
|
|
|
// The option hasn't been added yet. We'll add it with $autoload set to 'no'.
|
|
$deprecated = null;
|
|
$autoload = 'no';
|
|
add_option( $option_name, $new_value, $deprecated, $autoload );
|
|
}
|