\MainWP\DashboardMainWP_Plugins_Handler

Class MainWP MainWP_Plugins_Handler

Summary

Methods
Properties
Constants
get_class_name()
plugins_search_handler()
activate_plugins()
deactivate_plugins()
delete_plugins()
ignore_updates()
action()
trust_post()
trust_plugin()
check_auto_update_plugin()
save_trusted_plugin_note()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Get Class Name.

Returns

string —

CLASS

plugins_search_handler()

plugins_search_handler(mixed  $data, object  $website, mixed  $output) : mixed

Plugins Search Handler.

Parameters

mixed $data

Search Data.

object $website

Child Sites.

mixed $output

Output.

Returns

mixed —

error|array.

activate_plugins()

activate_plugins() 

Activate Plugin.

deactivate_plugins()

deactivate_plugins() 

Deactivate Plugin

delete_plugins()

delete_plugins() 

Delete Plugin.

action()

action(mixed  $pAction) : mixed

Plugin Action handler.

Parameters

mixed $pAction

activate|deactivate|delete.

Returns

mixed —

error|true

trust_plugin()

trust_plugin(mixed  $slug) 

Update Trusted Plugin list.

Parameters

mixed $slug

Plugin Slug.

check_auto_update_plugin()

check_auto_update_plugin(mixed  $slug) : boolean

Check if automatic daily updates is on and the plugin is on the trusted list.

Parameters

mixed $slug

Plugin Slug.

Returns

boolean —

true|false.

save_trusted_plugin_note()

save_trusted_plugin_note() 

Save the trusted plugin note.