WordPress filter hook

berocket_widget_template

Fired by 21 WordPress plugins, running on 109K+ sites between them.

How to use berocket_widget_template

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'berocket_widget_template', function( $value, $args ) {
	// Change $value here.
	return $value;
}, 10, 2 );

Argument names come from Advanced AJAX Product Filters's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

21 plugins that fire berocket_widget_template

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

  1. Advanced AJAX Product Filters icon Advanced AJAX Product Filters50,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  2. Min and Max Quantity for WooCommerce icon Min and Max Quantity for WooCommerce20,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  3. Load More Products for WooCommerce icon Load More Products for WooCommerce10,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  4. Advanced Product Labels for WooCommerce icon Advanced Product Labels for WooCommerce10,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  5. Brands for WooCommerce icon Brands for WooCommerce5,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  6. Product Watermark for WooCommerce icon Product Watermark for WooCommerce2,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  7. Grid/List View for WooCommerce icon Grid/List View for WooCommerce2,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  8. Cart Notices for WooCommerce icon Cart Notices for WooCommerce2,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  9. Product Tabs Manager for WooCommerce icon Product Tabs Manager for WooCommerce1,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  10. Terms and Conditions Popup for WooCommerce icon Terms and Conditions Popup for WooCommerce1,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  11. Sales Report for WooCommerce icon Sales Report for WooCommerce1,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  12. Products Compare for WooCommerce icon Products Compare for WooCommerce1,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  13. Pagination Styler for WooCommerce icon Pagination Styler for WooCommerce1,000+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  14. Sequential Order Numbers for WooCommerce icon Sequential Order Numbers for WooCommerce900+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  15. Products Suggestions for WooCommerce icon Products Suggestions for WooCommerce600+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  16. Force Sell for WooCommerce icon Force Sell for WooCommerce600+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  17. Currency Exchange for WooCommerce icon Currency Exchange for WooCommerce500+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  18. Wishlist and Waitlist for WooCommerce icon Wishlist and Waitlist for WooCommerce100+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  19. Product of the Day for WooCommerce icon Product of the Day for WooCommerce40+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  20. Product Preview for WooCommerce icon Product Preview for WooCommerce40+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30
  21. Splash Popup for WooCommerce icon Splash Popup for WooCommerce30+ installs apply_filters( 'berocket_widget_template', 'widget', $args['plugin_class']::info ) berocket/includes/widget.php:30

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.