woocommerce_navigation_get_breadcrumbs

woocommerce_navigation_get_breadcrumbs

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_navigation_get_breadcrumbs') is found 2 times:

  • /src/Admin/PageController.php line 166
     
    		// Bail if this isn't a page registered with this controller.
    		if ( false === $current_page ) {
    			// Filter documentation below.
    			return apply_filters( 'woocommerce_navigation_get_breadcrumbs', array( '' ), $current_page );
    		}
    
    		$page_title = ! empty( $current_page['page_title'] ) ? $current_page['page_title'] : $current_page['title'];
    		$page_title = (array) $page_title;
    		if ( 1 === count( $page_title ) ) {
    			$breadcrumbs = $page_title;
    
  • /src/Admin/PageController.php line 212
    		 *
    		 * @param array         $breadcrumbs Navigation pieces (breadcrumbs).
    		 * @param array|boolean $current_page The connected page data or false if not identified.
    		 */
    		return apply_filters( 'woocommerce_navigation_get_breadcrumbs', $breadcrumbs, $current_page );
    	}
    
    	/**
    	 * Get the current page.
    	 *
    	 * @return array|boolean Current page or false if not registered with this controller.
    

See this hook used in plugins: