I received notice that this plugin was removed from WordPress.
As I use it on several websites, I want to know if it is a temporary closure and the return of the plugin is planned after its revision, or on the contrary, it is a total abandonment and I must look for alternatives.
Thanks.
]]>Hopefully, a fix is being worked on and will be released soon?
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24942
]]>hi,
what i need is to display certain menu based the category and subcategory selection.
by selecting the main category(girl) the menu is appeared. if i select any subcategory the menu is disappeared. also this issue appeared to product page.
the code that i use is below:
is_product() && has_term( ‘girl’, ‘product_cat’ ) || is_product_category( ’26’ ) || cat_is_ancestor_of( 263, get_queried_object()->term_id )
can you assist me please.
]]>Hi, I need to display a menu to specific users only but I want avoid to enter ID, I prefer username, there are some code to add a usernames’s list to show? Thank you
]]>Hi! Would like to report the bug we found…
The condition only works now for desktop… It was supposed to work for both devices…
I use this code is_user_logged_in() to show a link only for login users. Works fine on desktop but on mobile devices, the link is still showing for logout user…
– WP v6
Thanks!
]]>Hi. Is there an option to show a link only on Phones?
]]>Is there a conditional tag that will always be false (for temporarily disabling a page)? Thanx for your help.
]]>What is the syntax for conditional tags for membership groups. I am using members by memberpress.
Thanks!
]]>After upgrading WordPress to 5.9.2 I started to get a critical error warning on my WordPress site. I disabled plugins one at at time until the error cleared. The plugin in that appears to be causing the problem is Menu Items Visibility Control.
]]>I am using this plugin to control the visibility of menu items based on the user location. As advised in one of the topics, I am using the plugin GeoIP Detect to find user location and then using the shortcode from this plugin into the visibility condition as below. I want to display the menu item only if user location is Australia.
[geoip_detect2_show_if country=”AU”]
But it does not like it and throws an error
Visibility: syntax error, unexpected ‘country’ (T_STRING), expecting ‘]’
Is there a different way to use these two plugins ?
]]>Is it possible to use multiple conditions for a single menu, lets say for example: wp_is_mobile() and is_user_logged_in()?
And how, if it’s possible?!
]]>Hi. We’re looking for a more flexible option than https://github.com/helgatheviking/Nav-Menu-Roles but our technology stack sanity condition is that plugin development and issue tracking should be in the open, like on GitHub or GitLab. Google search failed to find any, does this plugin perhaps have a GH repo with another name?
We’re fine also purchasing any premium licenses, conditional on the above.
]]>One of my clients has been using your plugin for several years to show / hide menus according to the courses that each user has contracted.
To do this, she uses various conditionals of the plugin, including wc_memberships_is_user_active_member ($ user_id, xxxx), where xxxx is the ID of the contracted plan (course).
Everything has always worked correctly, but since some time (I detected it today but I don’t know since when it happens) it’s failing and for each occurrence of that function, in the front end it returns “Undefined variable: user_id”
How can I fix this error and get the menu to display normally again?
Thanks in advance.
]]>The error occurs when I log in to my admin account
Here is the error:
Use of undefined constant is_user_logged_in – assumed ‘is_user_logged_in’ (this will throw an Error in a future version of PHP)Use of undefined constant is_user_logged_in – assumed ‘is_user_logged_in’ (this will throw an Error in a future version of PHP)Use of undefined constant is_user_logged_in – assumed ‘is_user_logged_in’ (this will throw an Error in a future version of PHP)
I have is_user_logged_in in the plugin input in the menu items.
Let me know if you need any other info.
Thanks!
]]>I get this error on top of my admin page:
“Use of undefined constant ‘US’ – assumed ‘‘US’’ (this will throw an Error in a future version of PHP)”
I disabled your plugin and the error disappears.
Please help!
iR
]]>Hi,
I’m using your plugin with Elementor Pro and Memberium. All seems well, but I need to update WP to 5.7.
Showing at the top of your plugin page on WP.org is the following statement:
“This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”
Is it safe to update WP to 5.7?
Thanks
]]>Is it possible to hide or show the menu according to a database query?
]]>Hello,
I would like to know if this plugin is multisite compatible.
]]>Hi there,
Great plugin – simple idea but versatile.
I was hoping you’d be able to help…
I’m putting together a Woocommerce site which has various products for sale in different categories (eg: furniture, lighting, soft furnishings etc.) and subcategories too (eg: furniture>dining room or furniture>living room).
I have a main dropdown menu which has all of these categories/sub-categories in it but some can be “empty” depending on the items I have in stock at a given time, in which case I’d like them to be excluded from the dropdown menu.
Is there a statement I can use to exclude a category from the menu if it has no products or if all the products within it show zero stock? I have tried quite a few basic options to get started such as:
get_category(‘furniture’)->category_count > 0
but this will simply omit the funiture category regardless.
Apologies if this is super simple – I’m a total novice with code and I spent quite a lot of time searching and trying out different options but I’m not getting anywhere.
Thanks in advance.
]]>Hello,
Im getting suddenly this error (only on customizer)
2020/10/20 15:12:02 [error] 4114#4114: *948 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ':' in /www/ecomaltoweb_104/public/wp-content/plugins/menu-items-visibility-control/init.php(81) : eval()'d code on line 1" while reading response header from upstream, client: 190.55.27.78, server: staging-ecomaltoweb.kinsta.cloud, request: "GET /?customize_changeset_uuid=aea995e8-c660-4487-9a1c-767d1d234b3a&customize_theme=ee-child&customize_messenger_channel=preview-3 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php7.4-fpm-ecomaltoweb.sock:", host: "ee.staging-ecomaltoweb.kinsta.cloud", referrer: "https://ee.staging-ecomaltoweb.kinsta.cloud/wp-admin/customize.php?url=http%3A%2F%2Fee.staging-ecomaltoweb.kinsta.cloud%2F"
this are the conditions:
(in_array('mayoristas', $GLOBALS['current_user']->roles) || in_array('locales', $GLOBALS['current_user']->roles) || in_array('franquicias', $GLOBALS['current_user']->roles) || in_array('lista5', $GLOBALS['current_user']->roles) || in_array('lista6', $GLOBALS['current_user']->roles))
Receiving the followig fatal error: Uncaught Error: Call to undefined function memb_is_loggedin() in /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81) : eval()’d code:1 Stack trace: #0 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81): eval() #1 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/class-wp-hook.php(287): Menu_Items_Visibility_Control->visibility_check(Array, Object(WP_Term), Array) #2 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #3 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/nav-menu.php(777): apply_filters(‘wp_get_nav_menu…’, Array, Object(WP_Term), Array) #4 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/nav-menu-template.php(143): wp_get_nav_menu_items(Object(WP_Term), Array) #5 /home/imagethe/public_html/liveyourlifeinstyle.com/members/ in /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81) : eval()’d code on line 1
Can you help?
All other plug ins have been updated, if I disable the Menu Item Visibility Control plug in the site works but my Memberium code of course displays.
]]>Hi Hassan,
I just updated the plugin from 0.3.7 to 0.3.9 and at the same time updated WordPress to 5.4.1. The plugin which worked fine before stopped working.
What happens is that in the menu definition form the “Visibility” input (which the label now changed to “Visibility logic” with a link in a “?”) appears twice. The second input control is not selectable and no condition can be entered in it. The condition entered in the first input control is not saved and hence not used, which means that the menu item is always visible.
I backtracked to the version 0.3.7, which works fine.
— christer
Hi there, great plugin!
I tried to make it work with paidmembershipspro, but it doesn’t seem to be the case. It would be great to add it at some point.
Thanks!
]]>You will see below there is a fatal error when trying to view the menus. Why is this happening and how do we resolve it?
Thanks in advance
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Menu_Items_Visibility_Control::wp_nav_menu_item_custom_fields(), 4 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /wp-content/plugins/menu-items-visibility-control/init.php:44
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): Menu_Items_Visibility_Control->wp_nav_menu_item_custom_fields(‘2717’, Object(WP_Post), 0, Object(stdClass))
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /wp-content/themes/betheme/functions/theme-mega-menu.php(283): do_action(‘wp_nav_menu_ite…’, ‘2717’, Object(WP_Post), 0, Object(stdClass))
#4 /wp-includes/class-wp-walker.php(144): Walker_Nav_Menu_Edit_Mfn->start_el(”, Object(WP_Post), 0, Object(stdClass))
#5 /wp-content/plugins/menu-items-visibility-control/init.php on line 44
I like this plugin, but it hasn’t been updated for 2 years, is the plugin safe today? Thank you
]]>This plugin is showing up as abandoned – is it? It still seems to work fine and I’d rather not change to another one, any way to ‘update’ it so it shows as testing fine with current wp version?
]]>Would love to use this functionality but it does not activate on my PHP 7.3 / WP 5.2 test site. Time for an update?
Bastiaan Houtkooper
Zebra Hosting
Hi,
How show a menu item to only administrator?
I have used a logic “in_array(‘administrator’, $GLOBALS[‘current_user’]->roles)”.
But its not working.
Thank you.
Hi
Why the 1 year plug-in has not been updated!
Works with the new version of WordPress
Is it possible to hide naviagtion menu options by country with this plugin? In the US speciifcally?
]]>