Hi,
I am using MainWP and Elementor on many client projects and I need a MainWP hook that fires when an Elementor update is completed.
The hook should execute the Elementor function Regenerating CSS.
https://elementor.com/help/custom-css-not-working/
This Elementor code should be executed with it:
function clear_elementor_cache() {
// Make sure that Elementor loaded and the hook fired
if ( did_action( 'elementor/loaded' ) ) {
// Automatically purge and regenerate the Elementor CSS cache
\Elementor\Plugin::instance()->files_manager->clear_cache();
}
}
Code Source: https://stackoverflow.com/questions/75388444/
Thank you for your help.