Skip to content

Instantly share code, notes, and snippets.

@sbruner
Created December 14, 2010 20:48
Show Gist options
  • Save sbruner/741078 to your computer and use it in GitHub Desktop.
Save sbruner/741078 to your computer and use it in GitHub Desktop.
RoloPress - Custom logged in menu
<?php function rolopress_custom_top_menu() {
if ( is_user_logged_in() ) {
echo "<div id=\"menu\">";
wp_nav_menu( array( 'menu' => 'default-menu') ); // display menu built in Appearance > Menus
rolopress_default_top_menu_right(); // call function to create right side of menu.
echo "</div>";
} else {
SHOW NON-LOGGED IN MENU;
};
};
add_action('rolopress_before_wrapper', 'rolopress_custom_top_menu');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment