mainwp.dev/deploy-test/source-code/child/classes/MainWP-Child-MainWP-Child-WP-Rocket.html

3096 lines
160 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MainWP Child Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/template.js"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">MainWP Child Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category -namespaces">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/mainwp.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/mainwp-child.html" class="">Child</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category -packages">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWP.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="packages/MainWP-Child.html" class="">Child</a>
</li>
<li>
<a href="packages/MainWP-ChildCreditsPlugin.html" class="">ChildCreditsPlugin</a>
</li>
<li>
<a href="packages/MainWP-Dashboard.html" class="">Dashboard</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWPChild.html" class="">MainWPChild</a>
</h4>
</section>
<section class="phpdocumentor-sidebar__category -reports">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="graphs/classes.html">Class Diagram</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category -indices">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -nine phpdocumentor-content">
<section>
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="namespaces/mainwp.html">MainWP</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/mainwp-child.html">Child</a></li>
</ul>
<article class="phpdocumentor-element -class">
<h2 class="phpdocumentor-content__title">
MainWP_Child_WP_Rocket
<div class="phpdocumentor-element__package">
in package
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP.html">MainWP</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin.html">ChildCreditsPlugin</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin.html">NameWPRocketPlugin</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin-URIhttpswp.html">URIhttpswp</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin-URIhttpswp-rocket.html">rocket</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin-URIhttpswp-rocket-meAuthorWPMediaAuthorURIhttpwp.html">meAuthorWPMediaAuthorURIhttpwp</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin-URIhttpswp-rocket-meAuthorWPMediaAuthorURIhttpwp-media.html">media</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameWPRocketPlugin-URIhttpswp-rocket-meAuthorWPMediaAuthorURIhttpwp-media-meLicenceGPLv2orlater.html">meLicenceGPLv2orlater</a></li>
</ul>
</div>
</h2>
<div class="phpdocumentor-label-line">
</div>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">28</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.28" class="phpdocumentor-element-found-in__source" data-line="28" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Class MainWP_Child_WP_Rocket</p>
<section class="phpdocumentor-description"><p>MainWP Rocket extension handler.</p>
</section>
<h3 id="toc">
Table of Contents
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-properties">
Properties
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_instance">$instance</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Public static variable to hold the single instance of the class.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_is_plugin_installed">$is_plugin_installed</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Public variable to hold the infomration if the WP Rocket plugin is installed on the child site.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_plugin_translate">$plugin_translate</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Public variable to hold the information about the language domain.</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method___construct">__construct()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>MainWP_Child_WP_Rocket constructor.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action">action()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Method actions()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_all_plugins">all_plugins()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method all_plugins()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_clear_priority_elements">clear_priority_elements()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method clear_priority_elements()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_do_admin_post_rocket_purge_opcache">do_admin_post_rocket_purge_opcache()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method do_admin_post_rocket_purge_opcache()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_generate_critical_css">generate_critical_css()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method generate_critical_css()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_plugins">get_active_plugins()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Get active plugins (list of IDs).</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_theme">get_active_theme()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Get active theme ID.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_optimize_info">get_optimize_info()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method get_optimize_info()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_rocket_default_options">get_rocket_default_options()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method get_rocket_default_options()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_hide_update_notice">hide_update_notice()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method hide_update_notice()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_init">init()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Method init()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_instance">instance()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method instance()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_is_activated">is_activated()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method is_activated()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_load_existing_settings">load_existing_settings()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method load_existing_settings()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_optimize_database">optimize_database()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method optimize_database()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_cache">preload_cache()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method preload_cache()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_purge_cache_all">preload_purge_cache_all()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method preload_purge_cache_all()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_prepare_delayjs_ui_list">prepare_delayjs_ui_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;|array&lt;string|int, array&lt;string|int, mixed&gt;&gt; </span>
</dt>
<dd>Prepare the list of scripts, plugins and theme for the view.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_purge_cloudflare">purge_cloudflare()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method purge_cloudflare()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_filters_with_method_name">remove_filters_with_method_name()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method remove_filters_with_method_name()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_menu">remove_menu()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method remove_menu()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_notices">remove_notices()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method remove_notices()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_update_nag">remove_update_nag()</a>
<span>
&nbsp;: object </span>
</dt>
<dd>Method remove_update_nag()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_save_settings">save_settings()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method save_settings()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_set_showhide">set_showhide()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method set_showhide()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_sync_others_data">sync_others_data()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method sync_others_data()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_update_exclusion_list">update_exclusion_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>[Description for update_exclusion_list]</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_wp_before_admin_bar_render">wp_before_admin_bar_render()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method wp_before_admin_bar_render()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_ad_networks_from_list">get_ad_networks_from_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Get Ad Networks from the list.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_analytics_from_list">get_analytics_from_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Get Analytics scripts from the list.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_icon">get_icon()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Fetch the icon.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_other_services_from_list">get_other_services_from_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Get Other Services from the list.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_payment_processors_from_list">get_payment_processors_from_list()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Get Payment Processors from the list.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_theme_name">get_theme_name()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Get theme name from theme object.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_require_file_path">require_file_path()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method require_file_path()</dd>
</dl>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="
phpdocumentor-element
-property
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="property_instance">
$instance
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_instance" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">35</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.35" class="phpdocumentor-element-found-in__source" data-line="35" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Public static variable to hold the single instance of the class.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$instance</span>
= <span class="phpdocumentor-signature__default-value">null</span></code>
<section class="phpdocumentor-description"><p>Default null</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-public
"
>
<h4 class="phpdocumentor-element__name" id="property_is_plugin_installed">
$is_plugin_installed
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_is_plugin_installed" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">42</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.42" class="phpdocumentor-element-found-in__source" data-line="42" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Public variable to hold the infomration if the WP Rocket plugin is installed on the child site.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$is_plugin_installed</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<section class="phpdocumentor-description"><p>If WP Rocket intalled, return true, if not, return false.</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-public
"
>
<h4 class="phpdocumentor-element__name" id="property_plugin_translate">
$plugin_translate
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_plugin_translate" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">49</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.49" class="phpdocumentor-element-found-in__source" data-line="49" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Public variable to hold the information about the language domain.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$plugin_translate</span>
= <span class="phpdocumentor-signature__default-value">&#039;mainwp-child&#039;</span></code>
<section class="phpdocumentor-description"><p>'mainwp-child' languge domain.</p>
</section>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method___construct">
__construct()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">71</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.71" class="phpdocumentor-element-found-in__source" data-line="71" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">MainWP_Child_WP_Rocket constructor.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Run any time class is called.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_action">
action()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">643</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.643" class="phpdocumentor-element-found-in__source" data-line="643" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method actions()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">action</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Fire off certain WP Rocket plugin actions.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_set_showhide"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::set_showhide()">MainWP_Child_WP_Rocket::set_showhide()</abbr></a></span>
<section class="phpdocumentor-description"><p>Hide or unhide the WP Rocket plugin.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_purge_cloudflare"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::purge_cloudflare()">MainWP_Child_WP_Rocket::purge_cloudflare()</abbr></a></span>
<section class="phpdocumentor-description"><p>Purge the Cloudflare cache.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_purge_cache_all"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::preload_purge_cache_all()">MainWP_Child_WP_Rocket::preload_purge_cache_all()</abbr></a></span>
<section class="phpdocumentor-description"><p>Purge all cache.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_generate_critical_css"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::generate_critical_css()">MainWP_Child_WP_Rocket::generate_critical_css()</abbr></a></span>
<section class="phpdocumentor-description"><p>Generate critical CSS.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_save_settings"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::save_settings()">MainWP_Child_WP_Rocket::save_settings()</abbr></a></span>
<section class="phpdocumentor-description"><p>Save the plugin settings.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_load_existing_settings"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::load_existing_settings()">MainWP_Child_WP_Rocket::load_existing_settings()</abbr></a></span>
<section class="phpdocumentor-description"><p>Load existing settings.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_optimize_database"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::optimize_database()">MainWP_Child_WP_Rocket::optimize_database()</abbr></a></span>
<section class="phpdocumentor-description"><p>Optimize database tables.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_optimize_info"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::get_optimize_info()">MainWP_Child_WP_Rocket::get_optimize_info()</abbr></a></span>
<section class="phpdocumentor-description"><p>Get the optimization information.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_do_admin_post_rocket_purge_opcache"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::do_admin_post_rocket_purge_opcache()">MainWP_Child_WP_Rocket::do_admin_post_rocket_purge_opcache()</abbr></a></span>
<section class="phpdocumentor-description"><p>Do admin post to purge opcache.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_update_exclusion_list"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::update_exclusion_list()">MainWP_Child_WP_Rocket::update_exclusion_list()</abbr></a></span>
<section class="phpdocumentor-description"><p>Update inclusion and exclusion lists.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Helper.html#method_write"><abbr title="\MainWP\Child\MainWP_Helper::write()">MainWP_Helper::write()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-Callable.html#method_wp_rocket"><abbr title="\MainWP\Child\MainWP_Child_Callable::wp_rocket()">MainWP_Child_Callable::wp_rocket()</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_all_plugins">
all_plugins()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_all_plugins" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">613</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.613" class="phpdocumentor-element-found-in__source" data-line="613" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method all_plugins()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">all_plugins</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$plugins</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove the WP Rocket plugin from the list of all plugins when the plugin is hidden.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$plugins</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Array containing all installed plugins.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>$plugins Array containing all installed plugins without the WP Rocket.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_clear_priority_elements">
clear_priority_elements()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_clear_priority_elements" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1073</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.1073" class="phpdocumentor-element-found-in__source" data-line="1073" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method clear_priority_elements()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">clear_priority_elements</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Clear all priority elements.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Status of the action.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_do_admin_post_rocket_purge_opcache">
do_admin_post_rocket_purge_opcache()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_do_admin_post_rocket_purge_opcache" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">729</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.729" class="phpdocumentor-element-found-in__source" data-line="729" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method do_admin_post_rocket_purge_opcache()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">do_admin_post_rocket_purge_opcache</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Do admin post to purge opcache.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_do_admin_post_rocket_purge_opcache#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Do admin post to purge opcache.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_generate_critical_css">
generate_critical_css()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_generate_critical_css" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">868</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.868" class="phpdocumentor-element-found-in__source" data-line="868" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method generate_critical_css()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">generate_critical_css</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Generate critical CSS.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_generate_critical_css#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Exception.html"><abbr title="\MainWP\Child\MainWP_Exception">MainWP_Exception</abbr></a></span>
<section class="phpdocumentor-description"><p>Error message.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Generate critical CSS.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_properties()</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_classes_exists()</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_active_plugins">
get_active_plugins()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_plugins" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">377</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.377" class="phpdocumentor-element-found-in__source" data-line="377" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get active plugins (list of IDs).</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_active_plugins</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_active_theme">
get_active_theme()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_theme" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">396</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.396" class="phpdocumentor-element-found-in__source" data-line="396" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get active theme ID.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_active_theme</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_optimize_info">
get_optimize_info()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_optimize_info" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1021</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.1021" class="phpdocumentor-element-found-in__source" data-line="1021" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_optimize_info()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_optimize_info</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Get the optimization information.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_optimize_info#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Exception.html"><abbr title="\MainWP\Child\MainWP_Exception">MainWP_Exception</abbr></a></span>
<section class="phpdocumentor-description"><p>Error message.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Get the optimization information.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_classes_exists()</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_methods()</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result and optimization information.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_rocket_default_options">
get_rocket_default_options()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_rocket_default_options" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">107</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.107" class="phpdocumentor-element-found-in__source" data-line="107" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_rocket_default_options()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_rocket_default_options</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>WP Rocket plugin settings default options.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Default options.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hide_update_notice">
hide_update_notice()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_hide_update_notice" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">528</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.528" class="phpdocumentor-element-found-in__source" data-line="528" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method hide_update_notice()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hide_update_notice</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$slugs</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove the WP Rocket plugin update notice when the plugin is hidden.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$slugs</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Array containing installed plugins slugs.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>$slugs Array containing installed plugins slugs.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_init">
init()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_init" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">84</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.84" class="phpdocumentor-element-found-in__source" data-line="84" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method init()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">init</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Initiate action hooks.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_instance">
instance()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_instance" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">58</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.58" class="phpdocumentor-element-found-in__source" data-line="58" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method instance()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">instance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Create a public static instance.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"><p>Class instance.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_is_activated">
is_activated()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_is_activated" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">567</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.567" class="phpdocumentor-element-found-in__source" data-line="567" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_activated()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">is_activated</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Check if the WP Rocket pulgin is activated.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_is_activated#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-Posts.html#method_update_wp_rocket_custom_post"><abbr title="\MainWP\Child\MainWP_Child_Posts::update_wp_rocket_custom_post()">MainWP_Child_Posts::update_wp_rocket_custom_post()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
&mdash;
<section class="phpdocumentor-description"><p>If the WP Rocket pulgin is active, return true, if not, return false.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_load_existing_settings">
load_existing_settings()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_load_existing_settings" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1058</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.1058" class="phpdocumentor-element-found-in__source" data-line="1058" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method load_existing_settings()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">load_existing_settings</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Load existing settings.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_load_existing_settings#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Load existing settings.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result and settings options.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_optimize_database">
optimize_database()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_optimize_database" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">981</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.981" class="phpdocumentor-element-found-in__source" data-line="981" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method optimize_database()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">optimize_database</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Optimize database tables.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_optimize_database#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Exception.html"><abbr title="\MainWP\Child\MainWP_Exception">MainWP_Exception</abbr></a></span>
<section class="phpdocumentor-description"><p>Error message.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Optimize database tables.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_methods()</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_classes_exists()</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_preload_cache">
preload_cache()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_cache" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">830</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.830" class="phpdocumentor-element-found-in__source" data-line="830" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method preload_cache()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">preload_cache</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Preload cache.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_cache#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Exception.html"><abbr title="\MainWP\Child\MainWP_Exception">MainWP_Exception</abbr></a></span>
<section class="phpdocumentor-description"><p>Error message.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_methods()</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Helper::instance()-&gt;check_classes_exists()</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_preload_purge_cache_all">
preload_purge_cache_all()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_purge_cache_all" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">779</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.779" class="phpdocumentor-element-found-in__source" data-line="779" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method preload_purge_cache_all()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">preload_purge_cache_all</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Purge all cache.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_purge_cache_all#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Purge all cache.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_prepare_delayjs_ui_list">
prepare_delayjs_ui_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_prepare_delayjs_ui_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">223</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.223" class="phpdocumentor-element-found-in__source" data-line="223" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Prepare the list of scripts, plugins and theme for the view.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">prepare_delayjs_ui_list</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;|array&lt;string|int, array&lt;string|int, mixed&gt;&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;|array&lt;string|int, array&lt;string|int, mixed&gt;&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_purge_cloudflare">
purge_cloudflare()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_purge_cloudflare" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">747</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.747" class="phpdocumentor-element-found-in__source" data-line="747" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method purge_cloudflare()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">purge_cloudflare</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Purge the Cloudflare cache.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_purge_cloudflare#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Purge the Cloudflare cache.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_remove_filters_with_method_name">
remove_filters_with_method_name()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_filters_with_method_name" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">466</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.466" class="phpdocumentor-element-found-in__source" data-line="466" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method remove_filters_with_method_name()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">remove_filters_with_method_name</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hook_name</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$method_name</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$priority</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">0</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove filters with method name.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$hook_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the hook name.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$method_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the method name.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$priority</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
= <span class="phpdocumentor-signature__argument__default-value">0</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the priority value.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_filters_with_method_name#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::remove_notices() Remove admin notices thrown by the WP Rocket plugin when the plugin is hidden.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_notices"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::remove_notices()">MainWP_Child_WP_Rocket::remove_notices()</abbr></a></span>
<section class="phpdocumentor-description"><p>Remove filters with method name.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
&mdash;
<section class="phpdocumentor-description"><p>Return false if filtr is not set.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove_menu">
remove_menu()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_menu" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">580</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.580" class="phpdocumentor-element-found-in__source" data-line="580" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method remove_menu()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">remove_menu</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove the WP Rocket menu item when the plugin is hidden.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove_notices">
remove_notices()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_notices" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">429</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.429" class="phpdocumentor-element-found-in__source" data-line="429" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method remove_notices()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">remove_notices</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove admin notices thrown by the WP Rocket plugin when the plugin is hidden.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_notices#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_filters_with_method_name"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::remove_filters_with_method_name()">MainWP_Child_WP_Rocket::remove_filters_with_method_name()</abbr></a></span>
<section class="phpdocumentor-description"><p>Remove filters with method name.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove_update_nag">
remove_update_nag()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_update_nag" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">544</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.544" class="phpdocumentor-element-found-in__source" data-line="544" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method remove_update_nag()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">remove_update_nag</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove the WP Rocket plugin update notice when the plugin is hidden.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Object containing update information.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_update_nag#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Helper.html#method_is_updates_screen"><abbr title="\MainWP\Child\MainWP_Helper::is_updates_screen()">MainWP_Helper::is_updates_screen()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object</span>
&mdash;
<section class="phpdocumentor-description"><p>$value Object containing update information.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_save_settings">
save_settings()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_save_settings" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">930</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.930" class="phpdocumentor-element-found-in__source" data-line="930" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method save_settings()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">save_settings</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Save the plugin settings.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_save_settings#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Save the plugin settings.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_set_showhide">
set_showhide()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_set_showhide" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">712</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.712" class="phpdocumentor-element-found-in__source" data-line="712" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method set_showhide()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">set_showhide</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Hide or unhide the WP Rocket plugin.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_set_showhide#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>\MainWP\Child\MainWP_Child_WP_Rocket::actions() Fire off certain WP Rocket plugin actions.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Hide or unhide the WP Rocket plugin.</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">uses</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Helper.html#method_update_option"><abbr title="\MainWP\Child\MainWP_Helper::update_option()">MainWP_Helper::update_option()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>Action result.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_sync_others_data">
sync_others_data()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_sync_others_data" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">200</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.200" class="phpdocumentor-element-found-in__source" data-line="200" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method sync_others_data()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">sync_others_data</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$information</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">array()</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Sync the WP Rocket plugin settings.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$information</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Array containing the sync information.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$data</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
= <span class="phpdocumentor-signature__argument__default-value">array()</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Array containing the WP Rocekt plugin data to be synced.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>$information Array containing the sync information.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_update_exclusion_list">
update_exclusion_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_update_exclusion_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">962</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.962" class="phpdocumentor-element-found-in__source" data-line="962" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">[Description for update_exclusion_list]</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">update_exclusion_list</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_update_exclusion_list#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">used-by</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action"><abbr title="\MainWP\Child\MainWP_Child_WP_Rocket::action()">MainWP_Child_WP_Rocket::action()</abbr></a></span>
<section class="phpdocumentor-description"><p>Update inclusion and exclusion lists.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_wp_before_admin_bar_render">
wp_before_admin_bar_render()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_wp_before_admin_bar_render" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">499</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.499" class="phpdocumentor-element-found-in__source" data-line="499" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method wp_before_admin_bar_render()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">wp_before_admin_bar_render</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Remove the WP Rocket admin bar node when the plugin is hidden.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_ad_networks_from_list">
get_ad_networks_from_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_ad_networks_from_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">332</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.332" class="phpdocumentor-element-found-in__source" data-line="332" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get Ad Networks from the list.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_ad_networks_from_list</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lists</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lists</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_analytics_from_list">
get_analytics_from_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_analytics_from_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">322</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.322" class="phpdocumentor-element-found-in__source" data-line="322" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get Analytics scripts from the list.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_analytics_from_list</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lists</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lists</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>List of scripts.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_icon">
get_icon()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_icon" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">363</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.363" class="phpdocumentor-element-found-in__source" data-line="363" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Fetch the icon.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_icon</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$item</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$item</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>item from the list.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_other_services_from_list">
get_other_services_from_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_other_services_from_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">352</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.352" class="phpdocumentor-element-found-in__source" data-line="352" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get Other Services from the list.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_other_services_from_list</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lists</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lists</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>List of scripts.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_payment_processors_from_list">
get_payment_processors_from_list()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_payment_processors_from_list" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">342</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.342" class="phpdocumentor-element-found-in__source" data-line="342" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get Payment Processors from the list.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_payment_processors_from_list</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">object&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lists</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$lists</span>
: <span class="phpdocumentor-signature__argument__return-type">object</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>List of scripts.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_theme_name">
get_theme_name()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_theme_name" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">408</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.408" class="phpdocumentor-element-found-in__source" data-line="408" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get theme name from theme object.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_theme_name</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\MainWP\Child\WP_Theme">WP_Theme</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$theme</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$theme</span>
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\MainWP\Child\WP_Theme">WP_Theme</abbr></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Theme to get its name.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_require_file_path">
require_file_path()
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_require_file_path" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-wp-rocket.php"><a href="files/class-class-mainwp-child-wp-rocket.html"><abbr title="class/class-mainwp-child-wp-rocket.php">class-mainwp-child-wp-rocket.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">764</span>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#source-view.764" class="phpdocumentor-element-found-in__source" data-line="764" data-modal="source-view" data-src="files/class/class-mainwp-child-wp-rocket.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method require_file_path()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">require_file_path</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$function_name</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file_name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Include necessary files.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$function_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>function Name.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$file_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>file Name.</p>
</section>
</dd>
</dl>
</article>
</section>
<div class="phpdocumentor-modal" id="source-view">
<div class="phpdocumentor-modal-bg" data-exit-button></div>
<div class="phpdocumentor-modal-container">
<div class="phpdocumentor-modal-content">
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/class/class-mainwp-child-wp-rocket.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
</div>
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
</div>
</div>
<script type="text/javascript">
(function () {
function loadExternalCodeSnippet(el, url, line) {
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
const language = 'php';
const code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
pre.setAttribute('data-line', line)
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
return;
}
if (xhr.status === 404) {
code.textContent = '✖ Error: File could not be found';
return;
}
if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
return;
}
code.textContent = '✖ Error: An unknown error occurred';
};
xhr.send(null);
});
}
const modalButtons = document.querySelectorAll("[data-modal]");
const openedAsLocalFile = window.location.protocol === 'file:';
if (modalButtons.length > 0 && openedAsLocalFile) {
console.warn(
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
'browsers block XHR requests when a page is opened this way'
);
}
modalButtons.forEach(function (trigger) {
if (openedAsLocalFile) {
trigger.setAttribute("hidden", "hidden");
}
trigger.addEventListener("click", function (event) {
event.preventDefault();
const modal = document.getElementById(trigger.dataset.modal);
if (!modal) {
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
return;
}
modal.classList.add("phpdocumentor-modal__open");
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
const exits = modal.querySelectorAll("[data-exit-button]");
exits.forEach(function (exit) {
exit.addEventListener("click", function (event) {
event.preventDefault();
modal.classList.remove("phpdocumentor-modal__open");
});
});
});
});
})();
</script>
</article>
</section>
<section class="phpdocumentor-on-this-page__sidebar">
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#toc-properties">Properties</a></li>
<li><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#toc-methods">Methods</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
<li>
<ul class="phpdocumentor-list -clean">
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_instance">$instance</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_is_plugin_installed">$is_plugin_installed</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#property_plugin_translate">$plugin_translate</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
<li>
<ul class="phpdocumentor-list -clean">
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method___construct">__construct()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_action">action()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_all_plugins">all_plugins()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_clear_priority_elements">clear_priority_elements()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_do_admin_post_rocket_purge_opcache">do_admin_post_rocket_purge_opcache()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_generate_critical_css">generate_critical_css()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_plugins">get_active_plugins()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_active_theme">get_active_theme()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_optimize_info">get_optimize_info()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_rocket_default_options">get_rocket_default_options()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_hide_update_notice">hide_update_notice()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_init">init()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_instance">instance()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_is_activated">is_activated()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_load_existing_settings">load_existing_settings()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_optimize_database">optimize_database()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_cache">preload_cache()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_preload_purge_cache_all">preload_purge_cache_all()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_prepare_delayjs_ui_list">prepare_delayjs_ui_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_purge_cloudflare">purge_cloudflare()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_filters_with_method_name">remove_filters_with_method_name()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_menu">remove_menu()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_notices">remove_notices()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_remove_update_nag">remove_update_nag()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_save_settings">save_settings()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_set_showhide">set_showhide()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_sync_others_data">sync_others_data()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_update_exclusion_list">update_exclusion_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_wp_before_admin_bar_render">wp_before_admin_bar_render()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_ad_networks_from_list">get_ad_networks_from_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_analytics_from_list">get_analytics_from_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_icon">get_icon()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_other_services_from_list">get_other_services_from_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_payment_processors_from_list">get_payment_processors_from_list()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_get_theme_name">get_theme_name()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#method_require_file_path">require_file_path()</a></li>
</ul>
</li>
</ul>
</section>
</section>
</div>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
<header class="phpdocumentor-search-results__header">
<h2 class="phpdocumentor-search-results__title">Search results</h2>
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
</header>
<section class="phpdocumentor-search-results__body">
<ul class="phpdocumentor-search-results__entries"></ul>
</section>
</section>
</section>
</div>
<a href="classes/MainWP-Child-MainWP-Child-WP-Rocket.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
</body>
</html>