acf_updates()
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(); ?>
No Hooks.
Returns
ACF\Updater. The singleton instance of Updater.
Usage
acf_updates();
Changelog
| Since 5.5.12 | Introduced. |
acf_updates() acf updates code ACF 6.8.8
function acf_updates() {
global $acf_updates;
if ( ! isset( $acf_updates ) ) {
$acf_updates = new ACF\Updater();
}
return $acf_updates;
}