\MainWP\ChildMainWP_Child_Jetpack_Scan

Class MainWP_Child_Jetpack_Scan

MainWP Staging Extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
action()
set_showhide()
hook_all_plugins()
hook_remove_menu()
admin_head()
hook_hide_update_notice()
hook_remove_update_nag()
$instance
$is_plugin_installed
$plugin_version
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$connection
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

$is_plugin_installed

$is_plugin_installed : boolean

Public variable to hold the information if the WP Staging plugin is installed on the child site.

Type

boolean — If WP Staging intalled, return true, if not, return false.

$plugin_version

$plugin_version : string

Public variable to hold the information if the WP Staging plugin is installed on the child site.

Type

string — version string.

$connection

$connection : string

Private variable to hold the Jetpack Connection information.

Type

string — version string.

Methods

__construct()

__construct() 

MainWP_Child_Jetpack_Scan constructor.

Run any time class is called.

action()

action() 

Fires of certain Jetpack Scan plugin actions.

set_showhide()

set_showhide() : array

Sets whether or not to hide the Jetpack Scan Plugin.

Returns

array —

$information Action result.

hook_all_plugins()

hook_all_plugins(array  $plugins) : mixed

Get list of all plugins except WPStaging.

Parameters

array $plugins

All installed plugins.

Returns

mixed —

Returned array of plugins without WPStaging included.

hook_remove_menu()

hook_remove_menu() 

Remove Jetpack WordPress Menu.

admin_head()

admin_head() 

Render admin header.

hook_hide_update_notice()

hook_hide_update_notice(array  $slugs) : mixed

Hide all admin update notices.

Parameters

array $slugs

Jetpack plugin slug.

Returns

mixed —

Returned $slugs.

hook_remove_update_nag()

hook_remove_update_nag(array  $value) : mixed

Remove WPStaging update Nag message.

Parameters

array $value

WPStaging slug.

Returns

mixed —

$value Response array.