Created
September 20, 2016 18:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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