\um\corePlugin_Updater

Class Plugin_Updater

Summary

Methods
Properties
Constants
__construct()
um_get_active_plugins()
um_plugin_updater_deactivation_hook()
um_checklicenses()
um_check_update()
um_plugins_api_filter()
http_request_args()
extend_download_url()
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

__construct()

__construct() 

Plugin_Updater constructor.

um_get_active_plugins()

um_get_active_plugins() : array

Get all paid UM extensions

Returns

array

um_plugin_updater_deactivation_hook()

um_plugin_updater_deactivation_hook() 

Remove CRON events on deactivation hook

um_checklicenses()

um_checklicenses() 

Check license function

um_check_update()

um_check_update(array  $_transient_data) : \stdClass

Check for Updates by request to the marketplace and modify the update array.

Parameters

array $_transient_data

plugin update array build by WordPress.

Returns

\stdClass —

modified plugin update array.

um_plugins_api_filter()

um_plugins_api_filter(mixed  $_data, string  $_action = '', object  $_args = null) : object

Updates information on the "View version x.x details" popup with custom data.

Parameters

mixed $_data
string $_action
object $_args

Returns

object —

$_data

http_request_args()

http_request_args(array  $args, string  $url) : array

Disable SSL verification in order to prevent download update failures

Parameters

array $args
string $url

Returns

array —

$array

extend_download_url()

extend_download_url(  $download_url,   $slug,   $data) : string

Download extension URL

Parameters

$download_url
$slug
$data

Returns

string