Support » Plugin: WP Store Locator » [Feature Request] SQL Clauses Array

  • Howdy_McGee



    I’m working through customizing a WPSL template to include taxonomies per this super helpful comment:

    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_clauses hook. For backwards compatibility this could be a hook that runs before wpsl_sql and the “built” query gets passed into the wpsl_sql hook.

    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 the wpsl_sql hook.

  • You must be logged in to reply to this topic.