Skip to content

Instantly share code, notes, and snippets.

@javorszky
Created November 26, 2012 01:17
Show Gist options
  • Save javorszky/4146091 to your computer and use it in GitHub Desktop.
Save javorszky/4146091 to your computer and use it in GitHub Desktop.
Adding extra classes to wp_nav_menu - part 1
<?php
function wp_nav_menu( $args = array() ) {
// function parts before
$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );
// rest of the function after
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment