• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WC_Breadcrumb::add_crumbs_post_type_archive() – Post type archive trail.

You appear to be a bot. Output may be restricted

Description

Post type archive trail.

Usage

WC_Breadcrumb::add_crumbs_post_type_archive();

Parameters

Returns

void

Source

File name: woocommerce/includes/class-wc-breadcrumb.php


Lines:

1 to 8 of 8
  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() ) );
    }
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 10th December 2020

Primary Sidebar

Information

Function name: WC_Breadcrumb::add_crumbs_post_type_archive
Class ref: WC_Breadcrumb
Plugin ref: WooCommerce
Version: 4.8.0
Sourcefile: includes/class-wc-breadcrumb.php
File ref: includes/class-wc-breadcrumb.php
Deprecated?: No
API Letters: A,B,C,P,W

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites