woof_seo_h1
Filters the H1 page title text during active filter searches, allowing customization of the main heading displayed on search result pages.
Parameters
$title (string) — The H1 text after replacing variables (e.g. {site_name}, {current_tax_name}) from the SEO rule configuration
Source File
ext/url_request/classes/seo.php:141
204
223
233
Code Example
add_filter('woof_seo_h1', function($title) {
return 'Filtered: ' . $title;
});
Usage Notes
- Called in 4 places: ajax_page_title(), set_page_title(), set_page_title___(), and set_h1().
- Applied via woocommerce_page_title and the_title WordPress filters internally.
- The $rule['h1'] value is processed through replace_vars() with site name and taxonomy info before filtering.