wc_back_header()WC 1.0

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 11.0.1

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>';
}