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:
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.
-
Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs
do_action( 'wie_before_import' )inc/importers/class-astra-widget-importer.php:106 -
Widget Importer & Exporter200,000+ installs
do_action( 'wie_before_import' )includes/import.php:224 -
Demo Importer Plus10,000+ installs
do_action( 'wie_before_import' )inc/importers/class-demo-importer-plus-widget-importer.php:81 -
Responsive Starter Templates10,000+ installs
do_action( 'wie_before_import' )includes/importers/class-responsive-ready-sites-widgets-importer.php:98 -
Anant Sites1,000+ installs
do_action( 'wie_before_import' )includes/class-ananta-sites.php:496 -
Theme One Click Demo Importer400+ installs
do_action( 'wie_before_import' )inc/core/classes/class-theme404-ocdi-core.php:386 -
Simple Theme Demo Importer Plugin50+ installs
do_action( 'wie_before_import' )simple-theme-demo-importer.php:337 -
LQThemes Companion40+ installs
do_action( 'wie_before_import' )inc/templates-importer/class-widgets-importer.php:81 -
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.