Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_primary_menu_args( $args ) {
- if( is_user_logged_in() ) {
- $args['theme_location'] = 'logged-in';
- } else {
- $args['theme_location'] = 'logged-out';
- }
- return $args;
- }
- add_filter('themeblvd_primary_menu_args', 'my_primary_menu_args');
- function my_nav_menus( $menus ) {
- $menus = array(
- 'logged-in' => __( 'Logged In Menu', 'themeblvd' ),
- 'logged-out' => __( 'Logged Out Menu', 'themeblvd' ),
- 'footer' => __( 'Footer Navigation', 'themeblvd' )
- );
- return $menus;
- }
- add_filter( 'themeblvd_nav_menus', 'my_nav_menus' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement