WordPress action hook

wie_before_import

Fired by 9 WordPress plugins, running on 1.2M+ sites between them.

How to use wie_before_import

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( 'wie_before_import', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

9 plugins that fire wie_before_import

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

  1. Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg icon Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs do_action( 'wie_before_import' ) inc/importers/class-astra-widget-importer.php:106
  2. Widget Importer & Exporter icon Widget Importer & Exporter200,000+ installs do_action( 'wie_before_import' ) includes/import.php:224
  3. Demo Importer Plus icon Demo Importer Plus10,000+ installs do_action( 'wie_before_import' ) inc/importers/class-demo-importer-plus-widget-importer.php:81
  4. Responsive Starter Templates icon Responsive Starter Templates10,000+ installs do_action( 'wie_before_import' ) includes/importers/class-responsive-ready-sites-widgets-importer.php:98
  5. Anant Sites icon Anant Sites1,000+ installs do_action( 'wie_before_import' ) includes/class-ananta-sites.php:496
  6. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs do_action( 'wie_before_import' ) inc/core/classes/class-theme404-ocdi-core.php:386
  7. Simple Theme Demo Importer Plugin icon Simple Theme Demo Importer Plugin50+ installs do_action( 'wie_before_import' ) simple-theme-demo-importer.php:337
  8. LQThemes Companion icon LQThemes Companion40+ installs do_action( 'wie_before_import' ) inc/templates-importer/class-widgets-importer.php:81
  9. TallyKit icon TallyKit10+ installs do_action( 'wie_before_import' ) components/importer/inc/widgets-importer.php:63

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.