2017 © Pedro Peláez
 

wordpress-plugin rest-api-search

A Composer wrapper for the "REST API Search" WordPress plugin

image

jwatkins/rest-api-search

A Composer wrapper for the "REST API Search" WordPress plugin

  • Friday, December 1, 2017
  • by johnwatkins0
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

REST API Search

This is only for Version 2 of the REST API Plugin

This adds the missing functionality of Search into the WordPress REST API. The issue being with the current REST API Version 2, you can only search on a per post_type basis., (*1)

/wp-json/wp/v2/posts?filter[s]=apples

/wp-json/wp/v2/pages?filter[s]=apples

What this plugin does.

Adds the search functionality for all posts types except revisions and types with 'exclude_from_search' set to true., (*2)

/wp-json/wp/v2/search/apples

In case of a multi word string, just replaces the spaces with plus signs., (*3)

/wp-json/wp/v2/search/apples+pears

Also adds easy paging, (*4)

page 2:, (*5)

/wp-json/wp/v2/search/apples+pears/2

page 3:, (*6)

/wp-json/wp/v2/search/apples+pears/3

The Versions

01/12 2017

dev-master

9999999-dev

A Composer wrapper for the "REST API Search" WordPress plugin

  Sources   Download

GPL-2.0

01/12 2017

v1.0

1.0.0.0

A Composer wrapper for the "REST API Search" WordPress plugin

  Sources   Download

GPL-2.0