WordPress action hook

elementor/core/files/clear_cache

Defined by Elementor Agent Ready Website Builder and fired by 7 plugins in total, running on 10M+ sites between them.

“Elementor clear files.”

How to use elementor/core/files/clear_cache

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'elementor/core/files/clear_cache', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

7 plugins that fire elementor/core/files/clear_cache

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Elementor Agent Ready Website Builder icon Elementor Agent Ready Website Builder10+ million installs do_action( 'elementor/core/files/clear_cache' ) core/files/manager.php:163
  2. Aarambha Demo Sites icon Aarambha Demo Sites200+ installs do_action( 'elementor/core/files/clear_cache' ) inc/helpers/functions.php:405
  3. AZKA Uncache My Cache icon AZKA Uncache My Cache100+ installs do_action( 'elementor/core/files/clear_cache' ) includes/handlers/class-handler-elementor.php:36
  4. Notifal icon Notifal40+ installs do_action( 'elementor/core/files/clear_cache' ) app/Modules/OnPageNotification/Application/Services/Core/ElementorCacheManager.php:197
  5. Neksin Connector icon Neksin Connector30+ installs do_action( 'elementor/core/files/clear_cache' ) includes/class-elementor-handler.php:624
  6. GOMAX Connect icon GOMAX ConnectFewer than 10 installs do_action( 'elementor/core/files/clear_cache' ) includes/class-elementor-controller.php:304
  7. NDT Duplicate icon NDT DuplicateFewer than 10 installs do_action( 'elementor/core/files/clear_cache' ) includes/duplicate-actions.php:125

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.