Search MainWP hook for completed Elementor update

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.

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

Code Source:

Thank you for your help.

Hey @Meox-Design

Welcome to the MainWP Community.

I’ll check with the development team and will update you as soon as I have more information.

Thank you very much!

Maybe MainWP also uses the WordPress Core function to start updates? Then I could use the WordPress hook upgrader_process_complete.


MainWP Child plugin has a hook mainwp_child_after_update that fires when the update of the plugin is finished.

The use of upgrader_process_complete hook from the WordPress core is also fine.

Thank you very much!

Then I use upgrader_process_complete.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.