ACF_Admin_Notice::render()publicACF 5.8.0

render

Renders the notice HTML.

Метод класса: ACF_Admin_Notice{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

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

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

Код ACF_Admin_Notice::render() 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 ) ) )
	);
}