wc_back_link

Outputs a "back" link so admin screens can easily jump back a page.

Description

wc_back_link( (string) $label, (string) $url ); 

Parameters (2)

0. $label (string)
Title of the page to return to.
1. $url (string)
URL of the page to return to.

Usage

  1. if ( !function_exists( 'wc_back_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-core-functions.php'; 
  3.  
  4. // Title of the page to return to. 
  5. $label = ''; 
  6.  
  7. // URL of the page to return to. 
  8. $url = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wc_back_link($label, $url); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-core-functions.php  
  1. function wc_back_link( $label, $url ) { 
  2. echo '<small class="wc-admin-breadcrumb"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '">⤴</a></small>';