[Feature Request] SQL Clauses Array
-
Hello,
I’m working through customizing a WPSL template to include taxonomies per this super helpful comment:
https://ww.wp.xz.cn/support/topic/more-taxonomies/#post-12795428
Ons thing I would love to see is a “posts_clauses” hook that splits up the SQL into a Array of key value pairs. Very similar to how WordPress does their
post_clauseshook. For backwards compatibility this could be a hook that runs beforewpsl_sqland the “built” query gets passed into thewpsl_sqlhook.It would make it much easier to modify specific portions of the SQL query such as joins or selects without having to
str_replace()or copy/paste the query into thewpsl_sqlhook.
The topic ‘[Feature Request] SQL Clauses Array’ is closed to new replies.