Function vanilla_frontend_search_where_replace_placeholder
Extends the original database search SQL query in order to take into account extended data associated with each post. The extended data can be post meta values and/or term names of taxonomies associated with each post. Meant to be used as a filter callback in order to extend the original database seach SQL query.
A placeholder has earlier on in the code been injected by the function
vanilla_frontend_search_where_inject_placeholder()
. This function is
supposed to run at a reasonably high priority (late), so that the
conditions that it injects are not likely to be matched by regexp lookups
of third party code, as a false-positive.
Author: Nevma, http://www.nevma.gr, info@nevma.gr
Located at base/vanilla-frontend-search.php
Parameters summary
string |
$where |
<p>The original WHERE clause of the database search SQL query.</p> |
Return value summary
string
|
The WHERE clause of the database search SQL query, having been extended to take into account the values of each post's meta or associated taxonomy terms, as required. |