acf_render_admin_notices()ACF 5.7.10

acf_render_admin_notices

Renders all admin notices HTML.

No Hooks.

Returns

null. Nothing (null).

Usage

acf_render_admin_notices();

Changelog

Since 5.7.10 Introduced.

acf_render_admin_notices() code ACF 6.8.8

function acf_render_admin_notices() {

	// Get notices.
	$notices = acf_get_store( 'notices' )->get_data();

	// Loop over notices and render.
	if ( $notices ) {
		foreach ( $notices as $notice ) {
			$notice->render();
		}
	}
}