WordPress at Your Fingertips
function is not described

WC_Breadcrumb::add_crumbs_attachment() protected WC 1.0

Attachment trail.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Breadcrumb::add_crumbs_attachment() WC 5.8.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() );
}