Support » Plugin: Menu Item Visibility Control » Menu item not showing with identical syntax

  • Hi,

    I use Restrict Content Pro and visibility control for menu items. I used the following line of code for a menu item to only display with certain subscription levels and it works great!

    rcp_is_active() && in_array( rcp_get_subscription(), array( ‘Secondee’, ‘Staff’ ) )

    I used an almost identical line of code on another menu item for the same purpose of only displaying with a certain subscription level and it doesn’t work or show the menu item.

    rcp_is_active() && in_array( rcp_get_subscription(), array( ‘Board’, ‘Staff’ ) )

    I can’t figure out what else is wrong. When I log in as Board the menu shifts a bit, but the Board menu item is not displayed.

    Any thoughts?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    Any thoughts on this?

    Thanks.

    Plugin Author shazdeh

    (@shazdeh)

    Hi!

    I’m afraid I can’t be of much help on this as I’m not familiar with RCP plugin. You can try contacting that plugin’s developers and seek their advise; there probably is a better way to check for current user subscriptions than doing it manually using in_array().

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menu item not showing with identical syntax’ is closed to new replies.