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:

functions.php
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.

  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_after_widget_import', $after_widget_import ) inc/importers/class-astra-widget-importer.php:270
  2. Widget Importer & Exporter icon Widget Importer & Exporter200,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) includes/import.php:401
  3. Demo Importer Plus icon Demo Importer Plus10,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) inc/importers/class-demo-importer-plus-widget-importer.php:212
  4. Responsive Starter Templates icon Responsive Starter Templates10,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) includes/importers/class-responsive-ready-sites-widgets-importer.php:262
  5. Blaze Demo Importer icon Blaze Demo Importer7,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) classes/class-widget-importer.php:187
  6. ThemeHunk Customizer icon ThemeHunk Customizer6,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) import/core/importer/import-widgets.php:339
  7. HashThemes Demo Importer icon HashThemes Demo Importer5,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) classes/class-widget-importer.php:189
  8. Hunk Companion icon Hunk Companion5,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) import/core/importer/import-widgets.php:339
  9. Sparkle Demo Importer icon Sparkle Demo Importer5,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) classes/class-widget-importer.php:187
  10. Easy Demo Importer icon Easy Demo Importer2,000+ installs do_action( 'wie_after_widget_import', $afterWidgetImport ) inc/Common/Models/Widgets.php:207
  11. Anant Sites icon Anant Sites1,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) includes/class-ananta-sites.php:661
  12. Zita Site Library for Elementor icon Zita Site Library for Elementor1,000+ installs do_action( 'wie_after_widget_import', $after_widget_import ) inc/import-widgets.php:243
  13. Vayu Blocks icon Vayu Blocks900+ installs do_action( 'wie_after_widget_import', $after_widget_import ) inc/vayu-sites/core/importer/import-widgets.php:336
  14. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs do_action( 'wie_after_widget_import', $after_widget_import ) inc/core/classes/class-theme404-ocdi-core.php:551
  15. Z Companion icon Z Companion200+ installs do_action( 'wie_after_widget_import', $after_widget_import ) import/inc/import-widgets.php:243
  16. LQThemes Companion icon LQThemes Companion40+ installs do_action( 'wie_after_widget_import', $after_widget_import ) inc/templates-importer/class-widgets-importer.php:238
  17. Scintilla Demo Importer icon 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.