mainwp.dev/code-docs/classes/MainWP-Child-MainWP-Child-Pagespeed.html
Dennis Dornon 5bfaae187c Local Working Update
Commiting semi-working version
2025-03-14 12:25:11 -04:00

1343 lines
70 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MainWP Dashboard Code Reference</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 href="https://fonts.googleapis.com/css2?family=Source+Sans+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" />
<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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/js/all.min.js" integrity="sha256-0vuk8LXoyrmCjp1f0O300qo1M75ZQyhH9X3J6d+scmk=" crossorigin="anonymous"></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 Dashboard Code Reference</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 -four phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h3 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/default.html"><abbr title="\">Global</abbr></a></h3>
<h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/mainwp.html"><abbr title="\MainWP">MainWP</abbr></a></h4>
<ul class="phpdocumentor-list">
<li><a href="namespaces/mainwp-child.html"><abbr title="\MainWP\Child">Child</abbr></a></li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/composer.html"><abbr title="\Composer">Composer</abbr></a></h4>
<ul class="phpdocumentor-list">
<li><a href="namespaces/composer-autoload.html"><abbr title="\Composer\Autoload">Autoload</abbr></a></li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/paragonie.html"><abbr title="\ParagonIE">ParagonIE</abbr></a></h4>
<ul class="phpdocumentor-list">
<li><a href="namespaces/paragonie-constanttime.html"><abbr title="\ParagonIE\ConstantTime">ConstantTime</abbr></a></li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/phpseclib3.html"><abbr title="\phpseclib3">phpseclib3</abbr></a></h4>
<ul class="phpdocumentor-list">
<li><a href="namespaces/phpseclib3-common.html"><abbr title="\phpseclib3\Common">Common</abbr></a></li>
<li><a href="namespaces/phpseclib3-crypt.html"><abbr title="\phpseclib3\Crypt">Crypt</abbr></a></li>
<li><a href="namespaces/phpseclib3-exception.html"><abbr title="\phpseclib3\Exception">Exception</abbr></a></li>
<li><a href="namespaces/phpseclib3-file.html"><abbr title="\phpseclib3\File">File</abbr></a></li>
<li><a href="namespaces/phpseclib3-math.html"><abbr title="\phpseclib3\Math">Math</abbr></a></li>
<li><a href="namespaces/phpseclib3-net.html"><abbr title="\phpseclib3\Net">Net</abbr></a></li>
<li><a href="namespaces/phpseclib3-system.html"><abbr title="\phpseclib3\System">System</abbr></a></li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/MainWP.html"><abbr title="\MainWP">MainWP</abbr></a></h3>
<ul class="phpdocumentor-list">
<li><a href="packages/MainWP-Child.html"><abbr title="\MainWP\Child">Child</abbr></a></li>
<li><a href="packages/MainWP-ChildCreditsPlugin.html"><abbr title="\MainWP\ChildCreditsPlugin">ChildCreditsPlugin</abbr></a></li>
<li><a href="packages/MainWP-Dashboard.html"><abbr title="\MainWP\Dashboard">Dashboard</abbr></a></li>
</ul>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/MainWPChild.html"><abbr title="\MainWPChild">MainWPChild</abbr></a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/Default.html"><abbr title="\Default">Default</abbr></a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/ParagonIE.html"><abbr title="\ParagonIE">ParagonIE</abbr></a></h3>
<ul class="phpdocumentor-list">
<li><a href="packages/ParagonIE-ConstantTime.html"><abbr title="\ParagonIE\ConstantTime">ConstantTime</abbr></a></li>
</ul>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/Mainwp.html"><abbr title="\Mainwp">Mainwp</abbr></a></h3>
<ul class="phpdocumentor-list">
<li><a href="packages/Mainwp-Child.html"><abbr title="\Mainwp\Child">Child</abbr></a></li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<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">
<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 -eight phpdocumentor-content">
<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_Pagespeed
<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-NameGooglePagespeedInsightsPlugin.html">NameGooglePagespeedInsightsPlugin</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameGooglePagespeedInsightsPlugin-URIhttpmattkeys.html">URIhttpmattkeys</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameGooglePagespeedInsightsPlugin-URIhttpmattkeys-meAuthorMattKeysAuthorURIhttpmattkeys.html">meAuthorMattKeysAuthorURIhttpmattkeys</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-ChildCreditsPlugin-NameGooglePagespeedInsightsPlugin-URIhttpmattkeys-meAuthorMattKeysAuthorURIhttpmattkeys-meLicenseGPLv2orlater.html">meLicenseGPLv2orlater</a></li>
</ul>
</div>
</h2>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="class/class-mainwp-child-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">28</span>
</aside>
<p class="phpdocumentor-summary">Class MainWP_Child_Pagespeed</p>
<section class="phpdocumentor-description"><p>MainWP Page Speed extension handler.</p>
</section>
<h3 id="toc">
Table of Contents
<a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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 href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#property_is_plugin_installed">$is_plugin_installed</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Public variable to hold the infomration if the Google Pagespeed Insights plugin is installed on the child site.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method___construct">__construct()</a>
<span>
&nbsp;: void
</span>
</dt>
<dd>MainWP_Child_Pagespeed constructor.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_action">action()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method actions()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_cal_pagespeed_data">cal_pagespeed_data()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method cal_pagespeed_data()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_check_pages">check_pages()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method check_pages()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_child_deactivation">child_deactivation()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method child_deactivation()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_delete_data">delete_data()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method delete_data()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_do_check_pages">do_check_pages()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method do_check_pages()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_get_filter_options">get_filter_options()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method get_filter_options()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_get_sync_data">get_sync_data()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method get_sync_data()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_hide_menu">hide_menu()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method hide_menu()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_hide_plugin">hide_plugin()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt;
</span>
</dt>
<dd>Method hide_plugin()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_init">init()</a>
<span>
&nbsp;: void
</span>
</dt>
<dd>Method init()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_init_cron">init_cron()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method init_cron()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_instance">instance()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method instance()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_pagespeed_cron_check">pagespeed_cron_check()</a>
<span>
&nbsp;: mixed
</span>
</dt>
<dd>Method pagespeed_cron_check()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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 href="classes/MainWP-Child-MainWP-Child-Pagespeed.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 href="classes/MainWP-Child-MainWP-Child-Pagespeed.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>
</dl>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">35</span>
</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"></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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">42</span>
</aside>
<p class="phpdocumentor-summary">Public variable to hold the infomration if the Google Pagespeed Insights 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"></section>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">66</span>
</aside>
<p class="phpdocumentor-summary">MainWP_Child_Pagespeed 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">void</span></code>
<section class="phpdocumentor-description"><p>Run any time class is called.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_action">
action()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">226</span>
</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">mixed</span></code>
<section class="phpdocumentor-description"><p>Fire off certain Google Pagespeed Insights plugin actions.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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-Pagespeed.html#method_save_settings"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::save_settings()">MainWP_Child_Pagespeed::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-Pagespeed.html#method_set_showhide"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::set_showhide()">MainWP_Child_Pagespeed::set_showhide()</abbr></a></span>
<section class="phpdocumentor-description"><p>Hide or unhide the Google Pagespeed Insights 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-Pagespeed.html#method_get_sync_data"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::get_sync_data()">MainWP_Child_Pagespeed::get_sync_data()</abbr></a></span>
<section class="phpdocumentor-description"><p>Get the Google Pagespeed Insights plugin data and store it in the sync request.</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-Pagespeed.html#method_check_pages"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::check_pages()">MainWP_Child_Pagespeed::check_pages()</abbr></a></span>
<section class="phpdocumentor-description"><p>Check pages page speed.</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>
<section class="phpdocumentor-description"></section>
</dd>
</dl>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_cal_pagespeed_data">
cal_pagespeed_data()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_cal_pagespeed_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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">513</span>
</aside>
<p class="phpdocumentor-summary">Method cal_pagespeed_data()</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">cal_pagespeed_data</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$strategy</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<section class="phpdocumentor-description"><p>Calculate page speed scores.</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">$strategy</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the selected strategy (desktop, mobile or both).</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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_Pagespeed::get_sync_data() Get the Google Pagespeed Insights plugin data and store it in the sync request.</p>
</section>
</dd>
</dl>
<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>Array containing data including last modified timespamp, average score and number of pages.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_check_pages">
check_pages()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_check_pages" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">414</span>
</aside>
<p class="phpdocumentor-summary">Method check_pages()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">check_pages</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<section class="phpdocumentor-description"><p>Initiate the check pages page speed.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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-Pagespeed.html#method_do_check_pages"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::do_check_pages()">MainWP_Child_Pagespeed::do_check_pages()</abbr></a></span>
<section class="phpdocumentor-description"><p>If needed, force recheck proces, if not just check.</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_Pagespeed::actions() Fire off certain Google Pagespeed Insights plugin actions.</p>
</section>
</dd>
</dl>
<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>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_child_deactivation">
child_deactivation()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_child_deactivation" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">107</span>
</aside>
<p class="phpdocumentor-summary">Method child_deactivation()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">child_deactivation</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<section class="phpdocumentor-description"><p>Unschedule scheduled events on MainWP Child plugin deactivation.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_delete_data">
delete_data()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_delete_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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">360</span>
</aside>
<p class="phpdocumentor-summary">Method delete_data()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">delete_data</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$what</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<section class="phpdocumentor-description"><p>Delete reports or all plugin data.</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">$what</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains information about what to delete, just reports or everything.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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_Pagespeed::save_settings() Save the plugin settings.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_do_check_pages">
do_check_pages()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_do_check_pages" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">438</span>
</aside>
<p class="phpdocumentor-summary">Method do_check_pages()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">do_check_pages</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$forceRecheck</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<section class="phpdocumentor-description"><p>Check or force re-check pages page speed.</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">$forceRecheck</span>
: <span class="phpdocumentor-signature__argument__return-type">bool</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>If true, force recheck process, if false, just regular check.</p>
</section>
</dd>
</dl>
<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>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_get_filter_options">
get_filter_options()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_get_filter_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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">607</span>
</aside>
<p class="phpdocumentor-summary">Method get_filter_options()</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">get_filter_options</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">$restrict_type</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;all&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<section class="phpdocumentor-description"></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">$restrict_type</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;all&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the restricted types.</p>
</section>
</dd>
</dl>
<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>Array containing the list of item types to check (posts, pages, categories,...).</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_sync_data">
get_sync_data()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_get_sync_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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">465</span>
</aside>
<p class="phpdocumentor-summary">Method get_sync_data()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_sync_data</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">$strategy</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<section class="phpdocumentor-description"><p>Get the Google Pagespeed Insights plugin data and store it in the sync request.</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">$strategy</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 selected strategy (desktop, mobile or both).</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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-Pagespeed.html#method_cal_pagespeed_data"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::cal_pagespeed_data()">MainWP_Child_Pagespeed::cal_pagespeed_data()</abbr></a></span>
<section class="phpdocumentor-description"><p>Calculate page speed scores.</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_Pagespeed::actions() Fire off certain Google Pagespeed Insights plugin actions.</p>
</section>
</dd>
</dl>
<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>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hide_menu">
hide_menu()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_hide_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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">159</span>
</aside>
<p class="phpdocumentor-summary">Method hide_menu()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hide_menu</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<section class="phpdocumentor-description"><p>Remove the Google Pagespeed Insights menu item when the plugin is hidden.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hide_plugin">
hide_plugin()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_hide_plugin" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">143</span>
</aside>
<p class="phpdocumentor-summary">Method hide_plugin()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hide_plugin</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>
<section class="phpdocumentor-description"><p>Remove the Google Pagespeed Insights 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>
<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 Google Pagespeed Insights plugin.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_init">
init()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">121</span>
</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>
<section class="phpdocumentor-description"><p>Initiate action hooks.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
&mdash;
<section class="phpdocumentor-description"></section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_init_cron">
init_cron()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_init_cron" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">183</span>
</aside>
<p class="phpdocumentor-summary">Method init_cron()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">init_cron</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<section class="phpdocumentor-description"><p>Schedule daily Page Speed checks.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">51</span>
</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>
<section class="phpdocumentor-description"><p>Create a public static instance.</p>
</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>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_pagespeed_cron_check">
pagespeed_cron_check()
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#method_pagespeed_cron_check" 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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">196</span>
</aside>
<p class="phpdocumentor-summary">Method pagespeed_cron_check()</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">pagespeed_cron_check</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<section class="phpdocumentor-description"><p>Schedule single Page Speed check event.</p>
</section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"></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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">263</span>
</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>
<section class="phpdocumentor-description"><p>Save the plugin settings.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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-Pagespeed.html#method_delete_data"><abbr title="\MainWP\Child\MainWP_Child_Pagespeed::delete_data()">MainWP_Child_Pagespeed::delete_data()</abbr></a></span>
<section class="phpdocumentor-description"><p>Delete reports or all plugin data.</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_Pagespeed::actions() Fire off certain Google Pagespeed Insights plugin actions.</p>
</section>
</dd>
</dl>
<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>
</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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">395</span>
</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>
<section class="phpdocumentor-description"><p>Hide or unhide the Google Pagespeed Insights plugin.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#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_update_option"><abbr title="\MainWP\Child\MainWP_Helper::update_option()">MainWP_Helper::update_option()</abbr></a></span>
<section class="phpdocumentor-description"></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_Pagespeed::actions() Fire off certain Google Pagespeed Insights plugin actions.</p>
</section>
</dd>
</dl>
<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>
</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-Pagespeed.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-pagespeed.php"><a href="files/class-class-mainwp-child-pagespeed.html"><abbr title="class/class-mainwp-child-pagespeed.php">class-mainwp-child-pagespeed.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">91</span>
</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>
<section class="phpdocumentor-description"><p>Sync the Google Pagespeed Insights plugin data.</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 Google Pagespeed Insights plugin data to be synced.</p>
</section>
</dd>
</dl>
<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>
</article>
</section>
</article>
<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>
</div>
<a href="classes/MainWP-Child-MainWP-Child-Pagespeed.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
</body>
</html>