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