$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Child_Updates
Manage updates on the site.
hook_fix_optimize_press_theme_update(object $transient) : object
Method hook_fix_optimize_press_theme_update()
Cutom support for the Optimize Press theme.
object | $transient | Object containig the update transient information. |
$transient Object containig the update transient information.
set_cached_update_plugins(boolean $false_value = false, object $_transient_data = null) : object
Method set_cached_update_plugins()
Support cached premium plugins update info, hooking in the bulk_upgrade().
boolean | $false_value | true|false. |
object | $_transient_data | Contains the transient data. |
$_transient_data Contains the updated transient data.
set_cached_update_themes(boolean $false_value = false, object $_transient_data = null) : object
Method set_cached_update_themes()
Support cached premium themes update info, hooking in the bulk_upgrade().
boolean | $false_value | true|false. |
object | $_transient_data | Contains the transient data. |
$_transient_data Contains the updated transient data.
upgrade_plugin(array $information, array $mwp_premium_updates_todo, array $mwp_premium_updates_todo_slugs, boolean $premiumUpgrader)
Method upgrade_plugin()
Initiate the plugin update process.
array | $information | An array containing the synchronization information. |
array | $mwp_premium_updates_todo | An array containing the list of premium plugins to update. |
array | $mwp_premium_updates_todo_slugs | An array containing the list of premium plugins slugs to update. |
boolean | $premiumUpgrader | If true, use premium upgrader. |
check_update_requires(array $plugins) : array
Method check_update_requires()
Check update requires.
array | $plugins | An array containing plugins to be updated. |
Error Exception.
An array of available plugins updates.
upgrade_theme(array $information, array $mwp_premium_updates_todo, array $mwp_premium_updates_todo_slugs, boolean $premiumUpgrader)
Method upgrade_theme()
Execute themes updates.
array | $information | An array containing the synchronization information. |
array | $mwp_premium_updates_todo | An array containing the list of premium themes to update. |
array | $mwp_premium_updates_todo_slugs | An array containing the list of premium themes slugs to update. |
boolean | $premiumUpgrader | If true, use premium upgrader. |
to_upgrade_themes(array $information, array $themes, string $last_update)
Method to_upgrade_themes()
Complete the themes update process.
array | $information | An array containing the synchronization information. |
array | $themes | An array containing themes to be updated. |
string | $last_update | Contains the last update timestamp. |
update_premiums_todo(array $information, boolean $premiumUpgrader, array $mwp_premium_updates_todo, array $mwp_premium_updates_todo_slugs)
Method update_premiums_todo()
Update premium plugins.
array | $information | An array containing the synchronization information. |
boolean | $premiumUpgrader | If true, use premium upgrader. |
array | $mwp_premium_updates_todo | An array containing the list of premium themes to update. |
array | $mwp_premium_updates_todo_slugs | An array containing the list of premium themes slugs to update. |