Skip to content

Instantly share code, notes, and snippets.

@d4mation
Created September 20, 2016 18:51
Show Gist options
  • Save d4mation/b481d30ed86a6af1a588d59472924e6d to your computer and use it in GitHub Desktop.
Save d4mation/b481d30ed86a6af1a588d59472924e6d to your computer and use it in GitHub Desktop.
Import WP .xml File With ALL Imported Content Assigned to the Same User
// Import a WP .xml File
// Paste into Browser Console when it asks you who to assign different Users' Content to
// Change "75" to the desired User ID
jQuery( 'select[name^="user_map"]' ).each( function( index, element ) {
jQuery( element ).val( 75 );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment