Skip to content

Instantly share code, notes, and snippets.

@emre-edu-tech
Created August 19, 2024 14:09
Show Gist options
  • Save emre-edu-tech/21b2d30cf56d3f976101498c75d70afd to your computer and use it in GitHub Desktop.
Save emre-edu-tech/21b2d30cf56d3f976101498c75d70afd to your computer and use it in GitHub Desktop.
This filter is used with All In One WP Migration plugin to exclude the stated folders from the export.
<?php
add_filter('ai1wm_exclude_content_from_export', function($exclude_filters) {
$exclude_filters[] = 'themes/your-theme-name';
return $exclude_filters;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment