File: /home/bt667/public_html/wp-content/plugins/old24-flying-pages/init-config.php
<?php
// Set default config on plugin load if not set
function flying_pages_set_default_config() {
if (FLYING_PAGES_VERSION !== get_option('FLYING_PAGES_VERSION')) {
if (get_option('flying_pages_config_delay') === false)
update_option('flying_pages_config_delay', 0);
if (get_option('flying_pages_config_ignore_keywords') === false)
update_option('flying_pages_config_ignore_keywords', ['/wp-admin','/wp-login.php','/cart','/checkout','add-to-cart','logout','#','?','.png','.jpeg','.jpg','.gif','.svg','.webp']);
if (get_option('flying_pages_config_max_rps') === false)
update_option('flying_pages_config_max_rps', 3);
if (get_option('flying_pages_config_hover_delay') === false)
update_option('flying_pages_config_hover_delay', 50);
if (get_option('flying_pages_config_disable_on_login') === false)
update_option('flying_pages_config_disable_on_login', true);
update_option('FLYING_PAGES_VERSION', FLYING_PAGES_VERSION);
}
}
add_action('plugins_loaded', 'flying_pages_set_default_config');