woof_seo_text
Filters the SEO text block displayed after the shop loop on filter search pages, allowing customization of the descriptive content shown below filtered products.
Parameters
$txt (string) — The SEO text content after replacing variables from the SEO rule's 'text' configuration
Source File
ext/url_request/classes/seo.php:401
Code Example
add_filter('woof_seo_text', function($txt) {
return $txt . '<p>' . __('Browse our curated selection.', 'my-theme') . '</p>';
});
Usage Notes
- Only outputs when $rule['text'] is not empty and do_index() returns true.
- The content is output via echo wrapped in a div with class 'woof_seo_text'.
- Output is sanitized with wp_kses_post() before display.