WC_Breadcrumb::add_crumbs_post_type_archive()
Post type archive 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_post_type_archive();
WC_Breadcrumb::add_crumbs_post_type_archive() WC Breadcrumb::add crumbs post type archive code WC 8.7.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() ) ); } }