Guest User

Untitled

a guest
Feb 27th, 2015
178
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_primary_menu_args( $args ) {
  2.  
  3.     if( is_user_logged_in() ) {
  4.         $args['theme_location'] = 'logged-in';
  5.     } else {
  6.         $args['theme_location'] = 'logged-out';
  7.     }
  8.  
  9.     return $args;
  10. }
  11. add_filter('themeblvd_primary_menu_args', 'my_primary_menu_args');
  12.  
  13.  
  14.  
  15.  
  16. function my_nav_menus( $menus ) {
  17.  
  18.     $menus = array(
  19.         'logged-in'     => __( 'Logged In Menu', 'themeblvd' ),
  20.         'logged-out'    => __( 'Logged Out Menu', 'themeblvd' ),
  21.         'footer'        => __( 'Footer Navigation', 'themeblvd' )
  22.     );
  23.  
  24.     return $menus;
  25.  
  26. }
  27. add_filter( 'themeblvd_nav_menus', 'my_nav_menus' );
RAW Paste Data