PHP code example of soderlind / multisite-exporter
1. Go to this page and download the library: Download soderlind/multisite-exporter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soderlind / multisite-exporter example snippets
/**
* Change the directory where Multisite Exporter stores exported files
*/
add_filter( 'multisite_exporter_directory', 'my_custom_export_directory' );
function my_custom_export_directory( $default_export_dir ) {
// Define a custom location for your export files
return WP_CONTENT_DIR . '/my-custom-exports';
}