WC_Breadcrumb::paged_trail()protectedWC 1.0

Add a breadcrumb for pagination.

Method of the class: WC_Breadcrumb{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->paged_trail();

WC_Breadcrumb::paged_trail() code WC 8.7.0

protected function paged_trail() {
	if ( get_query_var( 'paged' ) && 'subcategories' !== woocommerce_get_loop_display_mode() ) {
		/* translators: %d: page number */
		$this->add_crumb( sprintf( __( 'Page %d', 'woocommerce' ), get_query_var( 'paged' ) ) );
	}
}