neethab
Forum Replies Created
-
Hi Shazdeh,
The problem is solved.
It was not working as the array was not getting passed to the admin area of WordPress. When I assigned the array to a session it started working.
Gave the following code on the php file, $_SESSION[‘feature_array’]=$test_var; Then the visibility condition was given as in_array ( “Welcome!” , $_SESSION[‘feature_array’]).Thank-you so much for the help and this great plugin.
Regards,
NeethaHi Shazdeh,
Thanks for the reply.
Visibility works properly when I give the code you have given. The problem is, I cannot give the whole array like that. I have to use the array variable($test_var) as the array will be dynamically changing according to the user license for each user. I tried using “in_array ( “welcome” , $test_var)”. Unfortunately its not working. $test_var is a variable in a php page. I am able to print its value in the website but not in admin area.
How can I fix this?
Thanks,
NeethaForum: Plugins
In reply to: [Nav Menu Roles] Nav Role Menu doesn't work for half of my menuProblem solved! After changing the value of max_input_vars parameter from 1000 to 2000 in php.ini, we are able to assighn roles to all menu items.
Thanks.Forum: Plugins
In reply to: [Nav Menu Roles] Nav Role Menu doesn't work for half of my menuI haven’t made any changes in the site setup. I am able add to new menu items to my menu. I am able to assign roles to new menu items that I add under the first three main menu pages. But for the last two main menus and it’s sub-menus, role specification is not working. It’s not working when I add new main menu items also.