Skip to content

Instantly share code, notes, and snippets.

@chrisguitarguy
chrisguitarguy / editor-add-roles.php
Created February 11, 2012 21:51
Allow users with the role editor to add users to WordPress -- but only subscribers.
<?php
/*
Plugin Name: Editors Add Users
Description: Allow editors to add user roles
Author: Christopher Davis
Author URI: http://www.christopherguitar.me
License: GPL2
*/
register_activation_hook( __FILE__, 'wpse42003_activation' );