ACF_Admin_Notice::renderpublicACF 5.8.0

render

Renders the notice HTML.

Method of the class: ACF_Admin_Notice{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Admin_Notice = new ACF_Admin_Notice();
$ACF_Admin_Notice->render();

Changelog

Since 5.8.0 Introduced.

ACF_Admin_Notice::render() code ACF 6.0.4

function render() {
	$notice_text    = $this->get( 'text' );
	$notice_type    = $this->get( 'type' );
	$is_dismissible = $this->get( 'dismissible' );

	printf(
		'<div class="acf-admin-notice notice notice-%s %s">%s</div>',
		esc_attr( $notice_type ),
		$is_dismissible ? 'is-dismissible' : '',
		acf_esc_html( wpautop( acf_punctify( $notice_text ) ) )
	);
}