Posted By

jcottrell on 01/29/12


import wordpress jquery admin author

Versions (?)

Wordpress 3 make new users exactly the same as old

 / Published in: JavaScript

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

  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  

You need to login to post a comment.