- This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Simple MemberShip Menu
Tagged: menu
Hi everyone who is using the simple membership menu plugin, or attempting to use it… I managed to get it to work without the annoying warnings by casting the $item_groups.
Specifically this line:
$visible = count($item_groups) == 0 || in_array($level, (array)$item_groups);
I actually tested the type and it shows $item_groups as an array type, but not sure why that line can’t read it as an array, so had to explicitly cast it.
Hope this helps someone 🙂
Please enlighten us, as to what difficulty you were able to solve.
The simple membership menu plugin that was built by Giovanni Clement (https://wordpress.org/plugins/simple-membership-menu/) is no longer supported, and there have been posts that I found while looking for a solution for restricting my navigation menus that also tried to use his plugin, but as it is not tested for the latest version of wordpress, it was throwing errors about parameter 2 in the in_array function not being an array.
So I fiddled with it as I asked in this forum previously about how to handle menus, and you mentioned that that is beyond the scope of the simple membership plugin. So I went back to Giovanni’s plugin to try to get it to work. So far so good.
if-menu did not work for me, and nav menu did not pick up the membership levels for the simple membership plugin, only the standard wordpress roles.