WordPress.org

Ready to get started?Download WordPress

Forums

Proper way to filter capabilities? (1 post)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    I'm struggling a little with the proper/best way to filter capabilities.

    For the sake of discussion, how would I prevent Site Admins from switching the theme unless it's currently Monday.

    I'm thinking I need to add a filter to user_has_cap / current_user_can, and inside that function, do my logic about what day of the week it currently is.

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Jason Lemahieu (MadtownLems)
  • This topic is not resolved
  • WordPress version: 3.4.1

Tags

No tags yet.