ACF_Admin_Upgrade::admin_noticespublicACF 5.7.3

admin_notices

Displays the DB Upgrade prompt.

Method of the class: ACF_Admin_Upgrade{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Admin_Upgrade = new ACF_Admin_Upgrade();
$ACF_Admin_Upgrade->admin_notices();

Changelog

Since 5.7.3 Introduced.

ACF_Admin_Upgrade::admin_notices() code ACF 6.8.8

function admin_notices() {

	// vars
	$view = array(
		'button_text' => __( 'Upgrade Database', 'acf' ),
		'button_url'  => admin_url( 'index.php?page=acf-upgrade' ),
		'confirm'     => true,
	);

	// view
	acf_get_view( 'upgrade/notice', $view );
}