ACF

Updater::__constructpublicACF 5.0.0

Sets up the class functionality.

Method of the class: Updater{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 5.0.0 Introduced.

Updater::__construct() code ACF 6.8.8

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 on both save and get.
	add_filter( 'site_transient_update_plugins', array( $this, 'modify_plugins_transient' ), 10, 1 );

	// clear ACF transient when updates complete.
	add_filter( 'upgrader_process_complete', array( $this, 'clear_transients_on_upgrade' ), 5, 2 );

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