Wie Elementor CSS Regeneration mit upgrader_process_complete durchführen?

[ad_1]

Hi,
ich möchte mit der WordPress Funktion upgrader_process_complete die Elementor CSS Regeneration anstoßen, wenn ein Elementor Update durchgeführt wurde.

Wie kombinere ich die Funktion upgrader_process_complete mit dieser am sinnvollsten:

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();
}
}

Quelle:

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer