WC_Breadcrumb::add_crumbs_post_type_archive()

Post type archive trail.


Description Description


Source Source

File: includes/class-wc-breadcrumb.php

	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() ) );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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