WordPress at Your Fingertips
function is not described

WC_Breadcrumb::add_crumb() public WC 1.0

Add a crumb so we don't get lost.

{} It's a method of the class: WC_Breadcrumb{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Breadcrumb = new WC_Breadcrumb();
$WC_Breadcrumb->add_crumb( $name, $link );
$name(string) (required)
Name.
$link(string)
Link.
Default: ''

Code of WC_Breadcrumb::add_crumb() WC 5.8.0

public function add_crumb( $name, $link = '' ) {
	$this->crumbs[] = array(
		wp_strip_all_tags( $name ),
		$link,
	);
}