Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
5
Newest
 Supporter
Impact
~14k people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Mar
21
comment How can I fetch all users who are at or above X role?
Maybe I'm misunderstanding, but the idea of one role being 'above' another isn't quite the way I think about this. Generally, in that sense, I pick a capability that all the roles I would like to grab have, and then use a WP_User_Query with a meta_query. Key to look for in that meta query is prefix_capabilities
Aug
6
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
I'm not 100% certain that the option (c) works as of 4.2.4 (maybe before). In my tests the on_activation() method never gets called. Instead, there's a PHP warning in the logs; call_user_func_array() expects parameter 1 to be a valid callback, class 'WCM_Setup_Demo_File_Inc' not found in /path/to/wp-includes/plugin.php on line 496 This seems to make sense because the included file isn't included until the plugin is actually active (as the __construct() is what includes the file and that's only done on plugins_loaded
Jan
20
answered Logout URL performing strange
Jul
11
answered Set jpeg_quality for certain post-types
Jun
8
awarded  Supporter
Dec
30
comment Create wp_cront events dynamically upon user submission
I'm such an idiot. That makes complete sense. Thanks a lot Iain.
Dec
30
awarded  Scholar
Dec
30
accepted Create wp_cront events dynamically upon user submission
Dec
30
awarded  Editor
Dec
30
revised Create wp_cront events dynamically upon user submission
added 3 characters in body
Dec
30
asked Create wp_cront events dynamically upon user submission
Dec
30
awarded  Autobiographer
Dec
30
awarded  Teacher
Mar
8
answered add custom field in user register form