HUSKY - Products Filter Professional for WooCommerce

woof_override_seo_request_uri

woof_override_seo_request_uri

Позволяет переопределить URI запроса для SEO-URL. Используется для кастомизации URL страниц с результатами фильтрации.

Parameters

$uri (string) — текущий URI запроса

Source File

ext/url_request/classes/url_parser.php

Code Example

add_filter('woof_override_seo_request_uri', function($uri) {
    // Clean up the SEO URL for specific pages
    if (is_shop()) {
        $uri = '/shop' . $uri;
    }
    return $uri;
});

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.