Support » Plugin: Menu Item Visibility Control » Error on update to new version of plugin 4/17/2021

  • 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!

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Hi!

    is_user_logged_in is a WP function, the correct syntax to use it would be: is_user_logged_in() (note the parentheses). Please check your menu items, one of them is using this function but is missing the parentheses.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.