Support » Developing with WordPress » search_columns support in the WP REST API

  • When the WP REST API was a plugin, we could limit the search request to certain columns using the search_column parameter. Doesn’t seem to work now that its in core.

    Any way to get that back?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    Not exactly. You can achieve equivalent functionality, but you cannot change the current schema. You could create your own endpoint for such purposes. Or you could modify the resulting SQL query through the usual filters like “posts_request”, “posts_where”, “posts_clauses”, etc.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.