ACF_Admin_Notice::render
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 Admin Notice::render ACF 6.4.2
function render() {
$notice_text = $this->get( 'text' );
$notice_type = $this->get( 'type' );
$is_dismissible = $this->get( 'dismissible' );
$is_persisted = $this->get( 'persisted' );
printf(
'<div class="acf-admin-notice notice notice-%s %s" data-persisted="%s" data-persist-id="%s">%s</div>',
esc_attr( $notice_type ),
$is_dismissible ? 'is-dismissible' : '',
$is_persisted ? 'true' : 'false',
esc_attr( md5( $notice_text ) ),
acf_esc_html( wpautop( acf_punctify( $notice_text ) ) )
);
}