WC_Helper_Updater::load()public staticWC 1.0

Loads the class, runs on init.

Метод класса: WC_Helper_Updater{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Helper_Updater::load();

Код WC_Helper_Updater::load() WC 9.4.2

public static function load() {
	add_action( 'pre_set_site_transient_update_plugins', array( __CLASS__, 'transient_update_plugins' ), 21, 1 );
	add_action( 'pre_set_site_transient_update_themes', array( __CLASS__, 'transient_update_themes' ), 21, 1 );
	add_action( 'upgrader_process_complete', array( __CLASS__, 'upgrader_process_complete' ) );
	add_action( 'upgrader_pre_download', array( __CLASS__, 'block_expired_updates' ), 10, 2 );
	add_action( 'admin_init', array( __CLASS__, 'add_hook_for_modifying_update_notices' ) );
}