WordPress.org

Forums

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

  1. DJLunacy
    Member
    Posted 2 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!

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    Hi,

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

    http://wp-events-plugin.com/documentation/

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you can create a custom conditional if needed with php -
    http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/

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

  4. DJLunacy
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    maybe you can try at @Marcus suggestion.

    http://wp-events-plugin.com/tutorials/

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic