[Resolved] dynamic user roles
Hello useStrict, thanks for picking up this great little plugin.
I suppose the original author has dropped support?
I needed the plugin to send email to forum participants and other user roles, which did not appear in the list, so I wrote a quick fix. I think this could be useful to lots of folks, so I share the code, hoping this will make it in the next version of the plugin:
$options = array('blogadmin'...
$options = $wp_roles->get_names();
notify_new_reply(), replace the long
$users = get_users(array('role' => $opt_recipient));
foreach ((array)$users as $user)
$user = get_object_vars($user);
$recipients = $user['ID'];
You might also consider removing settings conversions relating to version 0.1.
- The topic ‘[Resolved] dynamic user roles’ is closed to new replies.