mainwp.dev/source-code/child/classes/MainWP-Child-MainWP-Connect.html
2025-03-17 19:02:54 -04:00

2731 lines
136 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_Connect
<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-Child.html">Child</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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">17</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.17" class="phpdocumentor-element-found-in__source" data-line="17" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Class MainWP_Connect</p>
<section class="phpdocumentor-description"><p>Manage connection between MainWP Dashboard and the child site.</p>
</section>
<h3 id="toc">
Table of Contents
<a href="classes/MainWP-Child-MainWP-Connect.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-properties">
Properties
<a href="classes/MainWP-Child-MainWP-Connect.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-Connect.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 -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#property_connect_user">$connect_user</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Private variable to hold the connect user.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#property_maxHistory">$maxHistory</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Private variable to hold the max history value.</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/MainWP-Child-MainWP-Connect.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-Connect.html#method_auth">auth()</a>
<span>
&nbsp;: int|bool </span>
</dt>
<dd>Method auth()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_compatible_connect_info">check_compatible_connect_info()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method check_compatible_connect_info()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_login">check_login()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method check_login()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_login_as">check_login_as()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method check_login_as()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_other_auth">check_other_auth()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method check_other_auth()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_to_requires_reconnect_for_sha1_safe">check_to_requires_reconnect_for_sha1_safe()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method check_to_requires_reconnect_for_sha1_safe()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_connect_verify">connect_verify()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method connect_verify()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_get_class_name">get_class_name()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Method get_class_name()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_get_connect_sign_algorithm">get_connect_sign_algorithm()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method get_connect_sign_algorithm().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_get_connected_user">get_connected_user()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method get_connected_user()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_get_max_history">get_max_history()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Method get_max_history()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.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-Connect.html#method_is_enabled_user_passwd_auth">is_enabled_user_passwd_auth()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method is_enabled_user_passwd_auth().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_auth">is_valid_auth()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method is_valid_auth()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_supported_sign_alg">is_valid_supported_sign_alg()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method is_valid_supported_sign_alg().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_user_pwd">is_valid_user_pwd()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method is_valid_user_pwd()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_is_verified_register">is_verified_register()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method is_verified_register().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_login">login()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method login()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_maybe_update_child_sign_algo">maybe_update_child_sign_algo()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method maybe_update_child_sign_algo()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_parse_init_auth">parse_init_auth()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method parse_init_auth()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_parse_login_required">parse_login_required()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method parse_login_required()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_parse_query">parse_query()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method parse_query()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_register_site">register_site()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method register_site()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_validate_pre_download_file">validate_pre_download_file()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method validate_pre_download_file()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_validate_register">validate_register()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method validate_register().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_verify_reconnect_for_current_connect">verify_reconnect_for_current_connect()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method verify_reconnect_for_current_connect().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_check_redirects">check_redirects()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Method check_redirects()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_generate_verify_hash">generate_verify_hash()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Method generate_verify_hash()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_get_request_files">get_request_files()</a>
<span>
&nbsp;: resource </span>
</dt>
<dd>Method get_request_files()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_may_be_generate_register_verify">may_be_generate_register_verify()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Method may_be_generate_register_verify().</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_open_location_redirect">open_location_redirect()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method open_location_redirect()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/MainWP-Child-MainWP-Connect.html#method_where_authed_redirect">where_authed_redirect()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Method where_authed_redirect()</dd>
</dl>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/MainWP-Child-MainWP-Connect.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-Connect.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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">24</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.24" class="phpdocumentor-element-found-in__source" data-line="24" data-modal="source-view" data-src="files/class/class-mainwp-connect.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
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_connect_user">
$connect_user
<a href="classes/MainWP-Child-MainWP-Connect.html#property_connect_user" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">31</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.31" class="phpdocumentor-element-found-in__source" data-line="31" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Private variable to hold the connect user.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$connect_user</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_maxHistory">
$maxHistory
<a href="classes/MainWP-Child-MainWP-Connect.html#property_maxHistory" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">38</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.38" class="phpdocumentor-element-found-in__source" data-line="38" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Private variable to hold the max history value.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$maxHistory</span>
= <span class="phpdocumentor-signature__default-value">5</span></code>
<section class="phpdocumentor-description"><p>Max history.</p>
</section>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/MainWP-Child-MainWP-Connect.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_auth">
auth()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_auth" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">503</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.503" class="phpdocumentor-element-found-in__source" data-line="503" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method auth()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">auth</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$signature</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">$func</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">$nonce</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int|bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Connection authentication handler. Verifies that the signature is correct for the specified data using the public key associated with pub_key_id. This must be the public key corresponding to the private key used for signing.</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">$signature</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>MainWP Dashboard signature.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$func</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Function to run.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$nonce</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Security nonce.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_auth#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.html#method_parse_init"><abbr title="\MainWP\Child\MainWP_Child::parse_init()">MainWP_Child::parse_init()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int|bool</span>
&mdash;
<section class="phpdocumentor-description"><p>$auth Returns 1 if authenticated, false if authentication fails.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_check_compatible_connect_info">
check_compatible_connect_info()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_compatible_connect_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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1161</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1161" class="phpdocumentor-element-found-in__source" data-line="1161" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_compatible_connect_info()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">check_compatible_connect_info</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>Check check compatible connected info.</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_check_login">
check_login()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">926</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.926" class="phpdocumentor-element-found-in__source" data-line="926" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_login()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">check_login</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>Auto-login user to the child site when the Open WP Admin feature from the MainWP Dashboard is used.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login#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 exception.</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-Connect.html#method_login"><abbr title="\MainWP\Child\MainWP_Connect::login()">MainWP_Connect::login()</abbr></a></span>
<section class="phpdocumentor-description"><p>Handle the login process.</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;error()</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.html#method_init_check_login"><abbr title="\MainWP\Child\MainWP_Child::init_check_login()">MainWP_Child::init_check_login()</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>Return false if $_POST['mainwpsignature'] is not set.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_check_login_as">
check_login_as()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login_as" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1008</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1008" class="phpdocumentor-element-found-in__source" data-line="1008" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_login_as()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">check_login_as</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alter_login</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>Auto-login alternative user to the child site when the Open WP Admin feature from the MainWP Dashboard is used.</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">$alter_login</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Alternative user account to log into.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login_as#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::check_login() Auto-login user to the child site when the Open WP Admin feature from the MainWP Dashboard is used.</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 will log in as default admin user. Return true will try to login as alternative user.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_check_other_auth">
check_other_auth()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_other_auth" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1098</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1098" class="phpdocumentor-element-found-in__source" data-line="1098" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_other_auth()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">check_other_auth</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>Check other authentication methods.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_other_auth#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_rand_string"><abbr title="\MainWP\Child\MainWP_Helper::rand_string()">MainWP_Helper::rand_string()</abbr></a></span>
</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>
<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.html#method___construct"><abbr title="\MainWP\Child\MainWP_Child::__construct()">MainWP_Child::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_check_to_requires_reconnect_for_sha1_safe">
check_to_requires_reconnect_for_sha1_safe()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_to_requires_reconnect_for_sha1_safe" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">602</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.602" class="phpdocumentor-element-found-in__source" data-line="602" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_to_requires_reconnect_for_sha1_safe()</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">check_to_requires_reconnect_for_sha1_safe</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alg_new</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>Check if need to deactive/active child plugin.</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">$alg_new</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Algo value.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_to_requires_reconnect_for_sha1_safe#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 exception.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_connect_verify">
connect_verify()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_connect_verify" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">533</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.533" class="phpdocumentor-element-found-in__source" data-line="533" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method connect_verify()</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">connect_verify</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</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">$signature</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">$pubkey</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alg</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>Verify connect.</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">$data</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Data sign.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$signature</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>signature.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$pubkey</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Public key.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$alg</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>signature algorithm.</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>Connect valid or not.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_get_class_name">
get_class_name()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_class_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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">47</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.47" class="phpdocumentor-element-found-in__source" data-line="47" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_class_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">get_class_name</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Get class name.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
&mdash;
<section class="phpdocumentor-description"><p><strong>CLASS</strong> Class name.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_get_connect_sign_algorithm">
get_connect_sign_algorithm()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_connect_sign_algorithm" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">567</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.567" class="phpdocumentor-element-found-in__source" data-line="567" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_connect_sign_algorithm().</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_connect_sign_algorithm</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alg</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>Get supported sign algorithms.</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">$alg</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Input value.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"><p>$alg Valid algorithm value.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_connected_user">
get_connected_user()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_connected_user" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1086</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1086" class="phpdocumentor-element-found-in__source" data-line="1086" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_connected_user()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_connected_user</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_get_max_history">
get_max_history()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_max_history" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1152</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1152" class="phpdocumentor-element-found-in__source" data-line="1152" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_max_history()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">get_max_history</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_max_history#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-Stats.html#method_get_site_stats"><abbr title="\MainWP\Child\MainWP_Child_Stats::get_site_stats()">MainWP_Child_Stats::get_site_stats()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
&mdash;
<section class="phpdocumentor-description"><p>The max history value.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_instance">
instance()
<a href="classes/MainWP-Child-MainWP-Connect.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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">58</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.58" class="phpdocumentor-element-found-in__source" data-line="58" data-modal="source-view" data-src="files/class/class-mainwp-connect.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_enabled_user_passwd_auth">
is_enabled_user_passwd_auth()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_enabled_user_passwd_auth" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">308</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.308" class="phpdocumentor-element-found-in__source" data-line="308" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_enabled_user_passwd_auth().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">is_enabled_user_passwd_auth</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$user_name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</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">$user_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>User name.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_is_valid_auth">
is_valid_auth()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_auth" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1133</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1133" class="phpdocumentor-element-found-in__source" data-line="1133" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_valid_auth()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">is_valid_auth</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</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 authentication is valid.</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">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the authentication key to check.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_auth#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-Clone.html#method_request_clone_funct"><abbr title="\MainWP\Child\MainWP_Clone::request_clone_funct()">MainWP_Clone::request_clone_funct()</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>true|false If valid authentication, return true, if not, return false.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_is_valid_supported_sign_alg">
is_valid_supported_sign_alg()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_supported_sign_alg" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">586</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.586" class="phpdocumentor-element-found-in__source" data-line="586" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_valid_supported_sign_alg().</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">is_valid_supported_sign_alg</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alg</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>Check if valid supported Sign Algo value.</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">$alg</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Input value.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
&mdash;
<section class="phpdocumentor-description"><p>$valid Valid algorithm value.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_is_valid_user_pwd">
is_valid_user_pwd()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_user_pwd" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">360</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.360" class="phpdocumentor-element-found-in__source" data-line="360" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_valid_user_pwd()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">is_valid_user_pwd</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$username</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">$pwd</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>Parse inistial authentication.</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">$username</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Admin login name.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$pwd</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Admin password.</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>ture|false.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_is_verified_register">
is_verified_register()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_is_verified_register" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">251</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.251" class="phpdocumentor-element-found-in__source" data-line="251" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method is_verified_register().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">is_verified_register</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$user_name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</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">$user_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>User name.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_login">
login()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_login" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1033</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.1033" class="phpdocumentor-element-found-in__source" data-line="1033" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method login()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">login</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$username</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$doAction</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">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The login process handler.</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">$username</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the account username.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$doAction</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, run 'wp_login' action aftr the login.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_login#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::check_login() Auto-login user to the child site when the Open WP Admin feature from the MainWP Dashboard is used.</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-Connect.html#method_check_login"><abbr title="\MainWP\Child\MainWP_Connect::check_login()">MainWP_Connect::check_login()</abbr></a></span>
<section class="phpdocumentor-description"><p>Handle the login process.</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>true|false</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_maybe_update_child_sign_algo">
maybe_update_child_sign_algo()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_maybe_update_child_sign_algo" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">627</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.627" class="phpdocumentor-element-found-in__source" data-line="627" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method maybe_update_child_sign_algo()</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">maybe_update_child_sign_algo</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$alg_new</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>Check if need to update child sign algo 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">$alg_new</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Algo value.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_parse_init_auth">
parse_init_auth()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_init_auth" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">398</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.398" class="phpdocumentor-element-found-in__source" data-line="398" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method parse_init_auth()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">parse_init_auth</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">$auth</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">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Parse inistial authentication.</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">$auth</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>True is authenticated, false if not.</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_init_auth#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-Callable.html#method_is_callable_function"><abbr title="\MainWP\Child\MainWP_Child_Callable::is_callable_function()">MainWP_Child_Callable::is_callable_function()</abbr></a></span>
</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-Callable.html#method_is_callable_function_no_auth"><abbr title="\MainWP\Child\MainWP_Child_Callable::is_callable_function_no_auth()">MainWP_Child_Callable::is_callable_function_no_auth()</abbr></a></span>
</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;error()</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.html#method_parse_init"><abbr title="\MainWP\Child\MainWP_Child::parse_init()">MainWP_Child::parse_init()</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>ture|false.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_parse_login_required">
parse_login_required()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_login_required" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">660</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.660" class="phpdocumentor-element-found-in__source" data-line="660" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method parse_login_required()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">parse_login_required</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 login process is required.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_login_required#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 exception.</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.html#method_parse_init"><abbr title="\MainWP\Child\MainWP_Child::parse_init()">MainWP_Child::parse_init()</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>Return true on success, false on failure.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_parse_query">
parse_query()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_query" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">807</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.807" class="phpdocumentor-element-found-in__source" data-line="807" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method parse_query()</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">parse_query</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$val</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>Parse query</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">$val</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Contains the parameter to prase.</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>$arr Array containing parsed arguments.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_register_site">
register_site()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_register_site" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">76</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.76" class="phpdocumentor-element-found-in__source" data-line="76" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method register_site()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">register_site</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>Register the current WordPress site thus generating teh public key.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/MainWP-Child-MainWP-Connect.html#method_register_site#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-Branding.html#method_save_branding_options"><abbr title="\MainWP\Child\MainWP_Child_Branding::save_branding_options()">MainWP_Child_Branding::save_branding_options()</abbr></a></span>
</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-Stats.html#method_get_site_stats"><abbr title="\MainWP\Child\MainWP_Child_Stats::get_site_stats()">MainWP_Child_Stats::get_site_stats()</abbr></a></span>
</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;error()</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_is_ssl_enabled"><abbr title="\MainWP\Child\MainWP_Helper::is_ssl_enabled()">MainWP_Helper::is_ssl_enabled()</abbr></a></span>
</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>
<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.html#method_parse_init"><abbr title="\MainWP\Child\MainWP_Child::parse_init()">MainWP_Child::parse_init()</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_validate_pre_download_file">
validate_pre_download_file()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_validate_pre_download_file" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">881</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.881" class="phpdocumentor-element-found-in__source" data-line="881" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method validate_pre_download_file()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">validate_pre_download_file</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</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">$dir</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</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">$file</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>File param request.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$dir</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Directory param request.</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>Valid or not valid to download file.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_validate_register">
validate_register()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_validate_register" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">174</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.174" class="phpdocumentor-element-found-in__source" data-line="174" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method validate_register().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">validate_register</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key_value</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">$act</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;verify&#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">$user_name</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">mixed</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">$key_value</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Key &amp; value.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$act</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;verify&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Action.</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$user_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>user name.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_verify_reconnect_for_current_connect">
verify_reconnect_for_current_connect()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_verify_reconnect_for_current_connect" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">289</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.289" class="phpdocumentor-element-found-in__source" data-line="289" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method verify_reconnect_for_current_connect().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">verify_reconnect_for_current_connect</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$user_name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</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">$user_name</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>User name.</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_check_redirects">
check_redirects()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_check_redirects" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">748</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.748" class="phpdocumentor-element-found-in__source" data-line="748" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method check_redirects()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">check_redirects</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>Handle redirects.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
&mdash;
<section class="phpdocumentor-description"><p>Returns false if $_REQUEST['fdl'] is set.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_generate_verify_hash">
generate_verify_hash()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_generate_verify_hash" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">376</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.376" class="phpdocumentor-element-found-in__source" data-line="376" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method generate_verify_hash()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">generate_verify_hash</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>Generates a random hash to be used when generating the key and secret.</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>Returns.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_get_request_files">
get_request_files()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_get_request_files" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">727</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.727" class="phpdocumentor-element-found-in__source" data-line="727" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method get_request_files()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">get_request_files</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">resource</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Parse HTTP request to get files.</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">resource</span>
&mdash;
<section class="phpdocumentor-description"><p>Requested file.</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_may_be_generate_register_verify">
may_be_generate_register_verify()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_may_be_generate_register_verify" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">325</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.325" class="phpdocumentor-element-found-in__source" data-line="325" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method may_be_generate_register_verify().</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">may_be_generate_register_verify</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
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_open_location_redirect">
open_location_redirect()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_open_location_redirect" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">778</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.778" class="phpdocumentor-element-found-in__source" data-line="778" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method open_location_redirect()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">open_location_redirect</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$open_location</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>Jump to the wanted location (child site WP Admin page).</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">$open_location</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Desired location relative path.</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_where_authed_redirect">
where_authed_redirect()
<a href="classes/MainWP-Child-MainWP-Connect.html#method_where_authed_redirect" 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-connect.php"><a href="files/class-class-mainwp-connect.html"><abbr title="class/class-mainwp-connect.php">class-mainwp-connect.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">826</span>
<a href="classes/MainWP-Child-MainWP-Connect.html#source-view.826" class="phpdocumentor-element-found-in__source" data-line="826" data-modal="source-view" data-src="files/class/class-mainwp-connect.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Method where_authed_redirect()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">where_authed_redirect</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>Safe redirect to wanted location.</p>
</section>
</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-connect.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-Connect.html#toc-properties">Properties</a></li>
<li><a href="classes/MainWP-Child-MainWP-Connect.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-Connect.html#property_instance">$instance</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#property_connect_user">$connect_user</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#property_maxHistory">$maxHistory</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-Connect.html#method_auth">auth()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_compatible_connect_info">check_compatible_connect_info()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login">check_login()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_login_as">check_login_as()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_other_auth">check_other_auth()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_to_requires_reconnect_for_sha1_safe">check_to_requires_reconnect_for_sha1_safe()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_connect_verify">connect_verify()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_get_class_name">get_class_name()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_get_connect_sign_algorithm">get_connect_sign_algorithm()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_get_connected_user">get_connected_user()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_get_max_history">get_max_history()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_instance">instance()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_is_enabled_user_passwd_auth">is_enabled_user_passwd_auth()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_auth">is_valid_auth()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_supported_sign_alg">is_valid_supported_sign_alg()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_is_valid_user_pwd">is_valid_user_pwd()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_is_verified_register">is_verified_register()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_login">login()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_maybe_update_child_sign_algo">maybe_update_child_sign_algo()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_init_auth">parse_init_auth()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_login_required">parse_login_required()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_parse_query">parse_query()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_register_site">register_site()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_validate_pre_download_file">validate_pre_download_file()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_validate_register">validate_register()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_verify_reconnect_for_current_connect">verify_reconnect_for_current_connect()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_check_redirects">check_redirects()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_generate_verify_hash">generate_verify_hash()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_get_request_files">get_request_files()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_may_be_generate_register_verify">may_be_generate_register_verify()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_open_location_redirect">open_location_redirect()</a></li>
<li class=""><a href="classes/MainWP-Child-MainWP-Connect.html#method_where_authed_redirect">where_authed_redirect()</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-Connect.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>