ACF

Updater::__constructpublicACF 5.0.0

Sets up the class functionality.

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

Хуков нет.

Возвращает

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

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

$Updater = new Updater();
$Updater->__construct();

Список изменений

С версии 5.0.0 Введена.

Код Updater::__construct() ACF 6.4.2

public function __construct() {

	// disable showing PRO updates if show updates is hidden.
	if ( acf_is_pro() && ! acf_pro_is_updates_page_visible() ) {
		return;
	}

	// append update information to transient.
	add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'modify_plugins_transient' ), 10, 1 );

	// modify plugin data visible in the 'View details' popup.
	add_filter( 'plugins_api', array( $this, 'modify_plugin_details' ), 10, 3 );
}