← Back
Editing: class-wp-rocket.php
<?php namespace GD_cORe\handlers\plugin_configs; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * The admin-specific functionality of the plugin. * * * @package GD_cORe * @subpackage GD_cORe/admin */ class wp_rocket extends Main { public $config = array( 'wprocketSettingsData' => array ( 'purge_cron_interval' => 10, 'purge_cron_unit' => 'HOUR_IN_SECONDS', 'exclude_css' => array ( ), 'critical_css' => '', 'minify_js' => 1, 'minify_concatenate_js' => 1, 'exclude_inline_js' => array ( ), 'exclude_js' => array ( ), 'defer_all_js' => 1, 'exclude_defer_js' => array ( ), 'delay_js' => 1, 'delay_js_scripts' => array ( 0 => 'getbutton.io', 1 => '//a.omappapi.com/app/js/api.min.js', 2 => 'feedbackcompany.com/includes/widgets/feedback-company-widget.min.js', 3 => 'snap.licdn.com/li.lms-analytics/insight.min.js', 4 => 'static.ads-twitter.com/uwt.js', 5 => 'platform.twitter.com/widgets.js', 6 => 'twq(', 7 => '/sdk.js#xfbml', 8 => 'static.leadpages.net/leadbars/current/embed.js', 9 => 'translate.google.com/translate_a/element.js', 10 => 'widget.manychat.com', 11 => 'xfbml.customerchat.js', 12 => 'static.hotjar.com/c/hotjar-', 13 => 'smartsuppchat.com/loader.js', 14 => 'grecaptcha.execute', 15 => 'Tawk_API', 16 => 'shareaholic', 17 => 'sharethis', 18 => 'simple-share-buttons-adder', 19 => 'addtoany', 20 => 'font-awesome', 21 => 'wpdiscuz', 22 => 'cookie-law-info', 23 => 'pinit.js', 24 => '/gtag/js', 25 => 'gtag(', 26 => '/gtm.js', 27 => '/gtm-', 28 => 'fbevents.js', 29 => 'fbq(', 30 => 'google-analytics.com/analytics.js', 31 => 'ga( \'', 32 => 'ga(\'', 33 => 'adsbygoogle.js', 34 => 'ShopifyBuy', 35 => 'widget.trustpilot.com/bootstrap', 36 => 'ft.sdk.min.js', 37 => 'apps.elfsight.com/p/platform.js', 38 => 'livechatinc.com/tracking.js', 39 => 'LiveChatWidget', 40 => '/busting/facebook-tracking/', 41 => 'olark', 42 => 'pixel-caffeine/build/frontend.js', ), 'exclude_lazyload' => array ( ), 'image_dimensions' => 1, 'manual_preload' => 1, 'sitemaps' => array ( ), 'preload_links' => '1', 'dns_prefetch' => array ( ), 'preload_fonts' => array ( ), 'cache_reject_uri' => array ( ), 'cache_reject_cookies' => array ( ), 'cache_reject_ua' => array ( ), 'cache_purge_pages' => array ( ), 'cache_query_strings' => array ( ), 'database_revisions' => 1, 'database_auto_drafts' => 1, 'database_trashed_posts' => 1, 'database_spam_comments' => 1, 'database_trashed_comments' => 1, 'database_optimize_tables' => 1, 'automatic_cleanup_frequency' => '', 'cdn_cnames' => array ( ), 'cdn_zone' => array ( ), 'cdn_reject_files' => array ( ), 'control_heartbeat' => 1, 'heartbeat_admin_behavior' => 'reduce_periodicity', 'heartbeat_editor_behavior' => 'reduce_periodicity', 'heartbeat_site_behavior' => 'reduce_periodicity', 'cloudflare_api_key' => '', 'cloudflare_email' => '', 'cloudflare_zone_id' => '', 'sucury_waf_api_key' => '', 'consumer_key' => '9970a590', 'consumer_email' => 'pwstech@godaddy.com', 'secret_key' => 'b798bf1b', 'license' => '1620764461', 'secret_cache_key' => '', 'minify_css_key' => '', 'minify_js_key' => '', 'version' => '', 'cloudflare_old_settings' => '', 'sitemap_preload_url_crawl' => '500000', 'cache_ssl' => 1, 'minify_google_fonts' => 1, 'emoji' => 1, 'async_css_mobile' => '1', 'cache_logged_user' => 0, 'cache_mobile' => 1, 'do_caching_mobile_files' => 0, 'minify_css' => 0, 'minify_concatenate_css' => 0, 'embeds' => 0, 'lazyload' => 0, 'lazyload_iframes' => 0, 'lazyload_youtube' => 0, 'async_css' => 0, 'database_expired_transients' => 0, 'database_all_transients' => 0, 'schedule_automatic_cleanup' => 0, 'sitemap_preload' => 0, 'do_cloudflare' => 0, 'cloudflare_devmode' => 0, 'cloudflare_auto_settings' => 0, 'cloudflare_protocol_rewrite' => 0, 'sucury_waf_cache_sync' => 0, 'cdn' => 0, 'varnish_auto_purge' => 0, ) ); public function __construct(){ } public function runConfig(){ update_option("wp_rocket_settings", $this->config['wprocketSettingsData'], false); } }
Save File
Cancel