Proper way to filter capabilities? (1 post)

  1. 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 4 years ago by Jason Lemahieu (MadtownLems)
  • This topic is not resolved
  • WordPress version: 3.4.1


No tags yet.