Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_filter( 'wp_nav_menu_objects', 'tgm_filter_nav_menu', 10, 2 );
function tgm_filter_nav_menu( $objects, $args ) {
echo '<pre>' . print_r( $objects, true ) . '</pre>';
echo '<pre>' . print_r( $args, true ) . '</pre>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.