Properties

$cache_key

$cache_key :string

Type

string—Internal key used for caching

Methods

register()

register()

check_update()

check_update(array  $transient_data): array

Check for Updates at the defined API endpoint and modify the update array.

This function dives into the update API just when WordPress creates its update array, then adds a custom API call and injects the custom plugin data retrieved from the API. It is reassembled from parts of the native WordPress plugin update code. See wp-includes/update.php line 121 for the original wp_update_plugins() function.

Parameters

array $transient_data

Plugin update object built by WordPress.

Returns

array —

Modified update array with custom plugin data.

get_plugin_details()

get_plugin_details(mixed  $data,string  $action = '',object  $args = null): object

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

Parameters

mixed $data
string $action
object $args

Returns

object —

$data

update_available_notice()

update_available_notice(  $plugin_data,  $response)

Parameters

$plugin_data
$response

format_version_info_for_plugin_update()

format_version_info_for_plugin_update(object  $version_info): object

Remove unrequired properties from EDD version info when storing in the 'update_plugins' transient.

Parameters

object $version_info

The version info from EDD

Returns

object —

The updated version info

format_version_info_for_plugin_details_modal()

format_version_info_for_plugin_details_modal(  $version_info)

Parameters

$version_info

maybe_disable_automatic_update()

maybe_disable_automatic_update(  $version_info)

Parameters

$version_info

get_latest_version()

get_latest_version()

get_cached_version_info()

get_cached_version_info()

set_cached_version_info()

set_cached_version_info(  $version_info)

Parameters

$version_info

get_cache_key()

get_cache_key()

is_beta_testing()

is_beta_testing()