WC_Breadcrumb::add_crumb( string $name, string $link = '' )

Add a crumb so we don’t get lost.


Description Description


Parameters Parameters

$name

(Required) Name.

$link

(Optional) Link.

Default value: ''


Top ↑

Source Source

File: includes/class-wc-breadcrumb.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.