ACF_Admin_Notice::render
render
Renders the notice HTML.
Method of the class: ACF_Admin_Notice{}
No Hooks.
Returns
void. Nothing (null).
Usage
$ACF_Admin_Notice = new ACF_Admin_Notice(); $ACF_Admin_Notice->render();
Changelog
| Since 5.8.0 | Introduced. |
ACF_Admin_Notice::render() ACF Admin Notice::render code ACF 6.8.8
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 ) ) )
);
}