Wordpress 3 make new users exactly the same as old

/ Published in: JavaScript
Save to your folder(s)

Go through all the authors of a wordpress import and make them the same as the previous authors (Wordpress 3.3).

Copy this code and paste it in your HTML
  1. (function($){
  2. $('#authors').children('li').each(function(i,el) {
  3. var nm = $(this).children('strong').text();
  4. $(this).children('input').first().val(nm);
  5. });
  6. }(jQuery));

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.