Skip to content

Instantly share code, notes, and snippets.

View d4mation's full-sized avatar
😏
GitHub is a social network now

Eric Defore d4mation

😏
GitHub is a social network now
View GitHub Profile
@d4mation
d4mation / export-multisite-install-to-standalone.js
Last active May 27, 2023 13:26
Select Specific Tables to Export from WP Multisite (phpMyAdmin)
// Choose "Custom" from the Export Page with your Database Selected
// Paste into Browser Console
// Swap "115" with your Site ID
jQuery( '.export_table_select tr .text-nowrap' ).each( function( index, table ) {
if ( jQuery( table ).text().indexOf( 'wp_3' ) > -1 ) {
jQuery( table ).closest( 'tr' ).find( 'input[type="checkbox"]' ).prop( 'checked', true );
}