\MainWP\ChildMainWP_Child_DB_Updater_WC

Class MainWP_Child_DB_Updater_WC.

MainWP Database Updater extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
requires_files()
hook_db_updater_sync_data()
get_needs_db_update()
update_db()
$instance
$is_plugin_woocom_installed
No constants found
No protected methods found
No protected properties found
N/A
update_wc_db()
hide_notice()
No private properties found
N/A

Properties

$instance

$instance : mixed

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

Type

mixed — Default null

$is_plugin_woocom_installed

$is_plugin_woocom_installed : boolean

Public variable to hold the infomration if the WooCommerce plugin is installed on the child site.

Type

boolean — If WooCommerce intalled, return true, if not, return false.

Methods

instance()

instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

__construct()

__construct() : void

Constructor.

Run any time class is called.

requires_files()

requires_files() : mixed

Requires WC files.

Returns

mixed —

Results.

hook_db_updater_sync_data()

hook_db_updater_sync_data(array  $db_upgrades) : array

Get db updater sync data.

Parameters

array $db_upgrades

Input sync data.

Throws

\MainWP\Child\Exception

Error message.

Returns

array —

$db_upgrades Return data array.

get_needs_db_update()

get_needs_db_update() : boolean

Is a DB update needed?

Returns

boolean

update_db()

update_db() : array

Method update_db()

Update WC DB.

Returns

array —

Action result.

update_wc_db()

update_wc_db() 

Push all needed DB updates to the queue for processing.

hide_notice()

hide_notice(string  $name) 

Hide a single notice.

Parameters

string $name

Notice name.