HUSKY - Products Filter Professional for WooCommerce

woof_print_content_before_redraw_zone

woof_print_content_before_redraw_zone

Позволяет вывести произвольный HTML-контент перед зоной перерисовки при AJAX-фильтрации.

Parameters

$content (string) — пустая строка по умолчанию

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.