WordPress filter hook
wie_available_widgets
Fired by 10 WordPress plugins, running on 1.2M+ sites between them.
How to use wie_available_widgets
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wie_available_widgets', function( $available_widgets ) {
// Change $available_widgets here.
return $available_widgets;
}, 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.
10 plugins that fire wie_available_widgets
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
apply_filters( 'wie_available_widgets', $available_widgets )inc/importers/class-astra-widget-importer.php:73 -
Widget Importer & Exporter200,000+ installs
apply_filters( 'wie_available_widgets', $available_widgets )includes/widgets.php:41 -
Demo Importer Plus10,000+ installs
apply_filters( 'wie_available_widgets', $available_widgets )inc/importers/class-demo-importer-plus-widget-importer.php:59 -
Responsive Starter Templates10,000+ installs
apply_filters( 'wie_available_widgets', $available_widgets )includes/importers/class-responsive-ready-sites-widgets-importer.php:68 -
WP Layouts3,000+ installs
apply_filters( 'wie_available_widgets', $available_widgets )includes/site-export/widgets-export.php:41 -
Anant Sites1,000+ installs
apply_filters( 'wie_available_widgets', $available_widgets )includes/class-ananta-sites.php:466 -
Theme One Click Demo Importer400+ installs
apply_filters( 'wie_available_widgets', $available_widgets )inc/helpers/functions.php:161 -
RealPress400+ installs
apply_filters( 'wie_available_widgets', $available_widgets )app/Controllers/SetupWizardController.php:396 -
Aarambha Demo Sites200+ installs
apply_filters( 'wie_available_widgets', $available_widgets )inc/helpers/functions.php:161 -
LQThemes Companion40+ installs
apply_filters( 'wie_available_widgets', $available_widgets )inc/templates-importer/class-widgets-importer.php:57
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.