Using Relevanssi in the admin TRASH product search
-
Hi there,
Since trashed posts by default are not indexed, this snippet destroys product search in the trashed page. I prefer not to index trashed posts, but instead not activate Relevanssi on the trashed products screen. Maybe you should add a note about that at the snippet page.
I changed line 3 to:
if (isset($query->query_vars['product_search']) && $query->query_vars['post_status'] != "trash") $ok = true;
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.