PHP Класс Jetpack_Autoupdate, jetpack

Hooks into WP_Automatic_Updater
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
automatic_updates_complete ( $results ) On completion of an automatic update, let's store the results.
autoupdate_core ( $update, $item )
autoupdate_plugin ( $update, $item )
autoupdate_theme ( $update, $item )
autoupdate_translation ( $update, $item )
bump_stats ( )
get_log ( )
get_plugin_slug ( $plugin_file )
get_possible_failures ( )
init ( )

Приватные методы

Метод Описание
__construct ( )
expect ( string $item, string $type ) Stores the an item identifier to the expected array.
get_successful_updates ( string $type ) : array Parses the autoupdate results generated by WP_Automatic_Updater and returns a simple array of successful items
log_items ( $items ) Iterates through expected items ( plugins or themes ) and compares them to actual results.

Описание методов

automatic_updates_complete() публичный Метод

On completion of an automatic update, let's store the results.
public automatic_updates_complete ( $results )
$results - Sent by WP_Automatic_Updater after it completes an autoupdate action. Results may be empty.

autoupdate_core() публичный Метод

public autoupdate_core ( $update, $item )

autoupdate_plugin() публичный Метод

public autoupdate_plugin ( $update, $item )

autoupdate_theme() публичный Метод

public autoupdate_theme ( $update, $item )

autoupdate_translation() публичный Метод

public autoupdate_translation ( $update, $item )

bump_stats() публичный Метод

public bump_stats ( )

get_log() публичный Метод

public get_log ( )

get_plugin_slug() статический публичный Метод

static public get_plugin_slug ( $plugin_file )

get_possible_failures() статический публичный Метод

static public get_possible_failures ( )

init() статический публичный Метод

static public init ( )