Remove file size export limitations from All-in-One WP Migration plugin

If the method below is no longer working, please try using the add on here. It must be updated to the latest version in order to work:  All-In-One-Migration-Unlimited-Extension

If you need to import a rather large website export from the All-in-One WP Migration plugin, you may see an error message that your file size exceeds the file size limits. They offer an Unlimited Extension upgrade, but it’s not free.

Instead, you can make a single change to the plugin’s codebase to bypass their filesize limitation.

Change in all-in-one-wp-migration/constants.php (line 239 in current version) :

//define( 'AI1WM_MAX_FILE_SIZE', 536870912 );
define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 100 );

Custom Output of Types repeating fields

Customize the output of repeating Fields as you like.

Also, holds function to get Attachment Data from its URL.
//This allows us to grab the ID of an attachement by it's URL)
function pippin_get_image_id($image_url) {
global $wpdb;
$attachment = $wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE guid='%s';", $image_url ));
return $attachment[0];
}

ShortCode callback
add_shortcode( 'my_file_name', 'my_file_name_func'); // Actually activate the shortcode
function my_file_name_func($atts) {
global $post; // So we can get the post meta later on

//define ShortCode attr prefix
$types = "wpcf-{$atts['types_field']}";

if ($types) { // if the types_field argument was provided

$urls = get_post_meta($post->ID,$types); // let's get the (potentially multiple) values

$content = ''; // Setting up a variable to hold the links so we can return it later

foreach ($urls as $fileurl) { // Let's iterate for each of the multiple values
$arr = explode('/',$fileurl); // Split it up so that we can just grab the end part, the filename
$id = pippin_get_image_id($fileurl);
$title = get_the_title($id);
$content .= $title . '
'; // Create whatever HTML and store it in the $content variable
}

return $content; // Return the content as the shortcode value

}

}

ShortCode to use:
[my_file_name types_field="toolset-file-field"]

Of course you can extend the callback ad infinitum.