WC_Breadcrumb::add_crumbs_attachment()protectedWC 1.0

Attachment trail.

Метод класса: WC_Breadcrumb{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->add_crumbs_attachment();

Код WC_Breadcrumb::add_crumbs_attachment() 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() );
}