WordPress at Your Fingertips
function is not described

WC_Breadcrumb::add_crumbs_post_type_archive() protected WC 1.0

Post type archive 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_post_type_archive();

Code of WC_Breadcrumb::add_crumbs_post_type_archive() WC 5.8.0

protected function add_crumbs_post_type_archive() {
	$post_type = get_post_type_object( get_post_type() );

	if ( $post_type ) {
		$this->add_crumb( $post_type->labels->name, get_post_type_archive_link( get_post_type() ) );
	}
}