Events Manager
[resolved] Is Admin Conditional? (5 posts)

  1. DJLunacy
    Posted 3 years ago #

    Is there a conditional for admin only or even roles?

    I know about the logged in one, but I could really use a if admin conditional ;)

    I didn't see it listed in the docs if it exists already.

    Where is the code for the conditionals that are already in the system?

    Thank You!


  2. agelonwl
    Posted 3 years ago #


    did you mean user capabilities at Settings > General > User Capabilities ?


  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    you can create a custom conditional if needed with php -

    the conditionals are created in classes/em-event.php at the top of the output() function

  4. DJLunacy
    Posted 3 years ago #

    No, agelonwi I know where users capabilities are.

    I'm talking about Conditionals, and since one exists to detect if the user is logged in, I presumed one to detect if the user is a admin would also exist.

    I guess not.

    I might dive into the code and see if i can easily make one.

  5. agelonwl
    Posted 3 years ago #

    maybe you can try at @Marcus suggestion.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic