wc_back_header()
Outputs a header with "back" link so admin screens can easily jump back a page.
No Hooks.
Returns
null. Nothing (null).
Usage
wc_back_header( $title, $label, $url );
- $title(string) (required)
- Title of the current page.
- $label(string) (required)
- Label of the page to return to.
- $url(string) (required)
- URL of the page to return to.
wc_back_header() wc back header code WC 10.3.6
function wc_back_header( $title, $label, $url ) {
$arrow = is_rtl() ? 'dashicons-arrow-right-alt2' : 'dashicons-arrow-left-alt2';
echo '<h2 class="wc-admin-header">';
echo '<small><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"><span class="dashicons ' . esc_attr( $arrow ) . '" aria-hidden="true"></span></a></small>';
echo esc_html( $title );
echo '</h2>';
}