Posted By

jcottrell on 03/08/12


Tagged


Versions (?)

Wordpress 3 Create User Quickly


 / Published in: JavaScript
 

From the Wordpress 3 Create New User page, use this code in browser dev tools to create new users (all having the same email ending).

  1. function adder(uname) {
  2. jQuery('#user_login').val(uname);
  3. jQuery('#email').val(uname+'@gmail.com');
  4. jQuery('#role').val('editor');
  5. jQuery('#noconfirmation').attr('checked',true);
  6. jQuery('#createuser').submit();
  7. }
  8. adder('newGuy');

Report this snippet  

You need to login to post a comment.