Last active
May 27, 2023 13:26
-
-
Save d4mation/f08bb64fa0f152bfb954ba7bb7ad0507 to your computer and use it in GitHub Desktop.
Select Specific Tables to Export from WP Multisite (phpMyAdmin)
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
// 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 ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment