WC_Breadcrumb::paged_trail()
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() WC Breadcrumb::paged trail code WC 8.6.1
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' ) ) ); } }