diff --git a/inc/main.php b/inc/main.php index b789b43..53f9663 100644 --- a/inc/main.php +++ b/inc/main.php @@ -62,7 +62,7 @@ function gtmkit_plugin_activation(): void { function gtmkit_plugin_deactivation(): void { if ( function_exists( 'wp_set_option_autoload' ) ) { - wp_set_option_autoload( 'gtmkit', 'no' ); + wp_set_option_autoload( 'gtmkit', true ); } else { global $wpdb; $wpdb->query( "UPDATE $wpdb->options SET autoload = 'no' WHERE option_name = 'gtmkit'" ); diff --git a/src/Installation/Activation.php b/src/Installation/Activation.php index e0f40f5..9d143f5 100644 --- a/src/Installation/Activation.php +++ b/src/Installation/Activation.php @@ -62,7 +62,7 @@ public function set_first_install_options(): void { public function set_autoload_on_options(): void { if ( function_exists( 'wp_set_option_autoload' ) ) { - wp_set_option_autoload( 'gtmkit', 'yes' ); + wp_set_option_autoload( 'gtmkit', true ); } else { global $wpdb; $wpdb->query( "UPDATE $wpdb->options SET autoload = 'yes' WHERE option_name = 'gtmkit'" );