Created
October 17, 2018 02:59
-
-
Save carlosonweb/f6f56d847dbccd906c5d8a03aa1ba84d to your computer and use it in GitHub Desktop.
Fix WP All Import Problem
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
<?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