acf_updates()ACF 5.5.12

The main function responsible for returning the acf_updates singleton. Use this function like you would a global variable, except without needing to declare the global.

Example: <?php $acf_updates = acf_updates(); ?>

Хуков нет.

Возвращает

ACF\Updater. The singleton instance of Updater.

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

acf_updates();

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

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

Код acf_updates() ACF 6.4.2

function acf_updates() {
	global $acf_updates;
	if ( ! isset( $acf_updates ) ) {
		$acf_updates = new ACF\Updater();
	}
	return $acf_updates;
}