[resolved] Request: check for ability to use PHP before showing snippets (2 posts)

  1. Heya!

    In the form for adding/editing a slideshow, there are two parts right now that give PHP snippets. With the rise of multisite networks, and other role/capability environments, I think it's a really nice feature to wrap any PHP snippet output in code such as the following:

    if (current_user_can('edit_themes')) { /* php snippet examples here */ }

    This way, people who can actually use php on the server get to see the message, and those who don't have that right aren't confused.

    Thanks for considering this for a future release. Cheers


  2. Stefan Boonstra
    Plugin Author

    Posted 3 years ago #


    Thanks for the suggestion and the clear explanation, I understand why it could be confusing. The PHP snippet will be hidden from lower-level-users in the release of version 2.1.19.

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.