Skip to content

Instantly share code, notes, and snippets.

@carlosonweb
Created October 17, 2018 02:59
Show Gist options
  • Save carlosonweb/f6f56d847dbccd906c5d8a03aa1ba84d to your computer and use it in GitHub Desktop.
Save carlosonweb/f6f56d847dbccd906c5d8a03aa1ba84d to your computer and use it in GitHub Desktop.
Fix WP All Import Problem
<?php
/**
* Add the code to All Import > Settings > Function Editor.
*/
function clear_bb_cache_after_wpai_import($import_id) {
FLBuilderModel::delete_asset_cache_for_all_posts();
}
add_action( 'pmxi_after_xml_import', 'clear_bb_cache_after_wpai_import', 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment