WC_Breadcrumb::add_crumbs_attachment()protectedWC 1.0

Attachment trail.

Method of the class: WC_Breadcrumb{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->add_crumbs_attachment();

WC_Breadcrumb::add_crumbs_attachment() code WC 8.7.0

protected function add_crumbs_attachment() {
	global $post;

	$this->add_crumbs_single( $post->post_parent, get_permalink( $post->post_parent ) );
	$this->add_crumb( get_the_title(), get_permalink() );
}