HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
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');