WordPress action hook
wie_after_widget_import
Fired by 17 WordPress plugins, running on 1.3M+ sites between them.
How to use wie_after_widget_import
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'wie_after_widget_import', function( $after_widget_import ) {
// 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.
17 plugins that fire wie_after_widget_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_after_widget_import', $after_widget_import )inc/importers/class-astra-widget-importer.php:270 -
Widget Importer & Exporter200,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )includes/import.php:401 -
Demo Importer Plus10,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )inc/importers/class-demo-importer-plus-widget-importer.php:212 -
Responsive Starter Templates10,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )includes/importers/class-responsive-ready-sites-widgets-importer.php:262 -
Blaze Demo Importer7,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )classes/class-widget-importer.php:187 -
ThemeHunk Customizer6,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )import/core/importer/import-widgets.php:339 -
HashThemes Demo Importer5,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )classes/class-widget-importer.php:189 -
Hunk Companion5,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )import/core/importer/import-widgets.php:339 -
Sparkle Demo Importer5,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )classes/class-widget-importer.php:187 -
Easy Demo Importer2,000+ installs
do_action( 'wie_after_widget_import', $afterWidgetImport )inc/Common/Models/Widgets.php:207 -
Anant Sites1,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )includes/class-ananta-sites.php:661 -
Zita Site Library for Elementor1,000+ installs
do_action( 'wie_after_widget_import', $after_widget_import )inc/import-widgets.php:243 -
Vayu Blocks900+ installs
do_action( 'wie_after_widget_import', $after_widget_import )inc/vayu-sites/core/importer/import-widgets.php:336 -
Theme One Click Demo Importer400+ installs
do_action( 'wie_after_widget_import', $after_widget_import )inc/core/classes/class-theme404-ocdi-core.php:551 -
Z Companion200+ installs
do_action( 'wie_after_widget_import', $after_widget_import )import/inc/import-widgets.php:243 -
LQThemes Companion40+ installs
do_action( 'wie_after_widget_import', $after_widget_import )inc/templates-importer/class-widgets-importer.php:238 -
Scintilla Demo Importer10+ installs
do_action( 'wie_after_widget_import', $afterWidgetImport )inc/Common/Models/Widgets.php:204
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.