\MainWP\ChildMainWP_Child_Install

Class MainWP_Child_Install

Handles Plugins and Themes Activate, Deactivate and Delete process.

Summary

Methods
Properties
Constants
get_class_name()
__construct()
get_instance()
plugin_action()
theme_action()
install_plugin_theme()
no_ssl_filter_function()
No public properties found
No constants found
No protected methods found
$instance
N/A
delete_plugins()
require_files()
after_installed()
try_second_install()
No private properties found
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of MainWP_Child_Install.

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : string

Get class name.

Returns

string —

CLASS Class name.

__construct()

__construct() 

MainWP_Child_Install constructor

Run any time class is called.

get_instance()

get_instance() : \MainWP\Child\MainWP_Child_Install|mixed|null

Create a public static instance of MainWP_Child_Install.

Returns

\MainWP\Child\MainWP_Child_Install|mixed|null

no_ssl_filter_function()

no_ssl_filter_function(array  $r) : array

Method no_ssl_filter_function()

Hook to set ssl verify value.

Parameters

array $r

Request's array values.

Returns

array —

$r Request's array values.

delete_plugins()

delete_plugins(array  $plugins, array  $output = array()) 

Method delete_plugins()

Delete a plugin from the Child Site.

Parameters

array $plugins

An array of plugins to delete.

array $output

An array output data.

require_files()

require_files() 

Method require_files()

Include necessary files.

after_installed()

after_installed(array  $result, array  $output) 

Method after_installed()

After plugin or theme has been installed.

Parameters

array $result

Results array from self::install_plugin_theme().

array $output

Results output array.

try_second_install()

try_second_install(string  $url, object  $installer) : object

Method try_second_install()

Alternative installation method.

Parameters

string $url

Package URL.

object $installer

Instance of \WP_Upgrader.

Returns

object —

$result Return error messages or TRUE.