ue from the filter self::$config['cache_mobile'] = apply_filters('flying_press_cache_mobile', false); update_option('FLYING_PRESS_CONFIG', self::$config); do_action('flying_press_update_config:after', self::$config); do_action('flying_press_upgraded'); } // Function to update the configuration public static function update_config($new_config = []) { self::$config = array_merge(self::$config, $new_config); // Update the cache_mobile config value from the filter self::$config['cache_mobile'] = apply_filters('flying_press_cache_mobile', false); update_option('FLYING_PRESS_CONFIG', self::$config); do_action('flying_press_update_config:after', self::$config); } public static function on_uninstall() { delete_option('FLYING_PRESS_CONFIG'); delete_option('FLYING_PRESS_VERSION'); } }