Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$menu_breadcrumb = new Menu_Breadcrumb( 'main' ); // 'main' is the Menu Location
$breadcrumb_array = $menu_breadcrumb->generate_trail();
$breadcrumb_markup = $menu_breadcrumb->generate_markup( $breadcrumb_array, ' &raquo; ' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment