Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'toolbox_customizer_on_publish' , 'clear_beaverbuilder_asset_cache' );
- /**
- * action for the toolbox customizer plugin. When publishing the changes it deletes the page cache
- * so that it updates colors and backgrounds
- */
- function clear_beaverbuilder_asset_cache( $prefix ) {
- if ( class_exists( 'FLBuilderModel' ) ) {
- FLBuilderModel::delete_asset_cache_for_all_posts();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement