wc_back_header()
Outputs a header with "back" link so admin screens can easily jump back a page.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wc_back_header( $title, $label, $url );
- $title(строка) (обязательный)
- Title of the current page.
- $label(строка) (обязательный)
- Label of the page to return to.
- $url(строка) (обязательный)
- URL of the page to return to.
Код wc_back_header() wc back header WC 9.9.4
function wc_back_header( $title, $label, $url ) { echo '<h2 class="wc-admin-header">'; echo '<small><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"><span class="dashicons dashicons-arrow-left-alt2"></span></a></small>'; echo esc_html( $title ); echo '</h2>'; }