woof_print_content_before_search_form
此钩子会在 WOOF 搜索表单的商品之前输出任何内容。
示例:
add_filter('woof_print_content_before_search_form', function($content) {
global $WOOF;
if ($WOOF AND woof()->is_isset_in_request_data(woof()->get_swoof_search_slug()))
{
return $content . 'Found results: ' . do_shortcode('[woof_found_count]') . '<br /><br />';
}
return '';
});
版本:v.2.1.6