HUSKY - Product Filter for WooCommerce

woof_print_content_before_redraw_zone

From v.2.2.4/1.2.4

Places above the products any business HTML message that is not redrawn by AJAX.

 

Parameters

$content (string) — an empty string by default

Source File

views/woof.php

Code Example


add_filter('woof_print_content_before_redraw_zone', function($content) {
    // Show a loading indicator before products redraw
    return '

' . esc_html__('Updating results...', 'woocommerce-products-filter') . '

'; });

Usage Notes

  • Add this code to your theme's functions.php file or a custom plugin.
  • The hook is applied during the filtering process — changes take effect immediately.
  • Always return the expected value type from the callback function.