I’d have 2 menus, and show the 2nd only if the user meet criteria. Then, use CSS to show both menus like its only one.
I think it’s the easiest way. And you have the benefit that the items aren’t really there, not just hidden.
Related Posts:
- Create a new usermeta field for users
- Calling a method from functions.php on a click of a button
- Showing user ID on user main page from screen options
- Conditional Statement – check if post has an attachment image
- Trying to use Ternary operators with WP Conditionals
- How to do conditional publishing?
- Issue with foreach on duplicate meta_key’s
- get_usermeta() deprecated in favor of get_user_meta(). But why doesn’t it make use of it?
- conditional statement for custom taxonomy
- How to display user nickname (not display name) in PHP template?
- Get all user meta by meta key instead of ID
- Add user settings to specific roles
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- How to get a list of all possible values of a specific user meta key?
- How do I display a user’s previous orders as a select box option on a product?
- Redirect to a different page through registration, depending on page
- How to use an associative array in post__in with WP_Query?
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- What is the correct way to write this conditional statement?
- Reordering Buddy Press profile navigation [closed]
- function to assign user role based on a field from usermeta
- How to upload a file to a folder named after the user_id via plugin
- Creating user status mode in WordPress
- How can I save unique user data on my site? [closed]
- Adding number to date not working [closed]
- How to abort saving data in save_extra_profile_fields function WordPress?
- Let Users Choose Post Categories
- Is_front_page inside header.php is always returning true
- a:0:{} is replaced into database as s:6:”a:0:{}”;
- Advanced Custom Fields – display label and value only if value entered
- How to check if the current page is at a specified path in the URL?
- Read array in php?
- Countdown to date function?
- Add class to DIV depending on page loaded
- Getting users with a specific meta data and then querying their posts?
- How to update and save user metadata on page visits?
- Login redirect. Check user meta and redirect accordingly
- Can I set up a hover animation in CSS depending on a PHP conditional?
- If Array Values Match Another Array’s Values, Then
- User Meta Value not echoing despite Var_Dump Showing correct string
- Shortcode for Listing Users from Meta Value?
- Getting different user data depending on where I use variable
- Adding Author Box Meta Links with Co-Authors
- Get the users that my following users are following
- Comapare get_user_meta value
- How can get all users by current user meta?
- Multidimensional Array
- Conditional featured image with youtube thumbnail
- Edit Account – read and write to MySQL
- How to make a conditional statement within $output in shortcodes.php?
- Conditionally remove comments and post meta in functions.php
- exclude custom post type from running a function
- include content within conditional statement?
- Uses for function: wp_update_user
- Show label for value only when value exists, basic php
- Update user repeater meta (ACF) with another user meta field value
- Create condition for Author bio Social Links
- How to store checkbox data for individual users?
- How do I Populate a Table Field with User Meta Data?
- How to add and subtract user meta values after post meta update
- User meta needed in query is serialized – how to unserialize safely?
- Include User ID in iFrame URL
- WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field
- Usermeta data unserialize, extract and display in table in WordPress
- Conditional formatting on data fetched from MYSQL
- Change user metadata on registration (show_admin_bar_front = false)
- Find and print first entry from WordPress post in custom excerpt?
- Store data from JavaScript object to custom table in user account
- Adding if statement
- Export WordPress User Meta to CSV/Excel
- Updating User Profile information removes image
- How to change the value of a variable using input field?
- Display current user metadata on WordPress page
- Change Login or Logout text based on status
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- Get user by meta data key and velue
- Where do I implement this display of User Meta Data, and how to put it in a table?
- Update an additional user meta field with a string
- Add another role to a user when they click a button?
- Get field in readable word
- Right way to display the_author_meta fields?
- Adding user meta to post meta wp_insert_post() not working
- Get meta_query value by user meta array
- Creating a custom register form
- get_users when from meta key that has serialized values
- How can get all users by current user meta (array)?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Updating meta_value in a custom key
- Jetpack: Display Site Title when no Site Logo
- If else statement based on referral URL
- Limit the number of successful logins
- If Month=Particular month display content [closed]
- Get author meta of all writers
- Let users register weight each day and save it in DB
- Custom Meta Box If Else Statement
- How do I reformat this to add php inside php?
- Not able to see the error [closed]
- A better way to write this php function
- Import users and custom user meta from csv