Skip to content

Adds an endpoint to the WordPress REST API for searching via SearchWP

Notifications You must be signed in to change notification settings

WebDevStudios/searchwp-api-route

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearchWP API

Adds an endpoint to the WordPress REST API for searching via SearchWP.

  • Requires WordPress REST API (WP-API) 2.0-beta2 or later.
  • Requires SearchWP Version 2.6 or later

Example Queries

  • wp-json/swp_api/search?s=jedi&egnine=star-wars
  • wp-json/swp_api/search?&tax_query[field]=slug&tax_query[taxonomy]=categories&tax_query[terms]=1
  • wp-json/swp_api/search?meta_query[key]=jedi&meta_query[value]=luke&tax_query[compare]=IN

License & Copyright

About

Adds an endpoint to the WordPress REST API for searching via SearchWP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%