The Search class.
3.0.0
Optional
Protected
Static
Fetch a single object from the endpoint.
2.0.0
Fetch multiple search results.
import { Search } from "@quickdevelopment/wp-js";const search = new Search();search.setSubtype('post').fetch().then((search) => { console.log(search);}) Copy
import { Search } from "@quickdevelopment/wp-js";const search = new Search();search.setSubtype('post').fetch().then((search) => { console.log(search);})
Get data about the current class.
1.0.0
Get the search parameters.
Set search parameters for the request.
Object containing search parameters.
Set the search subtype.
import { Search } from "@quickdevelopment/wp-js";const search = new Search();search.setSubtype('post'); Copy
import { Search } from "@quickdevelopment/wp-js";const search = new Search();search.setSubtype('post');
Get the instance of the WPJSSingleton class.
Generated using TypeDoc
The Search class.
Since
3.0.0