Add user input filter to where clause

by Jul 9, 2020Coding, What’s new?0 comments

Starting from version 3.1.5, the plugin allows to add a filter to a where clause based on user input:
  • Add an argument to your request (supports POST and GET)
  • Give your argument the name of your column prefixed with wpda_search_column_

Example

<input name="wpda_search_column_first_name" type="text" value="Sacha" />

Adds condition

first_name = 'Sacha'

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *