Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Simple MemberShip Menu

Simple Membership Plugin › Forums › Simple Membership Plugin › Simple MemberShip Menu

Tagged: menu

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago by Kingsley.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 5, 2018 at 8:12 am #14615
    Kingsley
    Participant

    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 🙂

    June 5, 2018 at 12:42 pm #14616
    The Assurer
    Moderator

    Please enlighten us, as to what difficulty you were able to solve.

    June 6, 2018 at 3:32 am #14625
    Kingsley
    Participant

    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.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy