Namespaces
Members
-
<static> loadPromise
-
Construct the default endpoints and add to an endpoints collection.
-
<static> WPApiBaseCollection
-
Contains basic collection functionality such as pagination.
-
<static> WPApiBaseModel
-
Backbone base model for all models.
Methods
-
<static> init( [args])
-
Initialize the wp-api, optionally passing the API root.
Parameters:
Name Type Argument Description args
object <optional>
Properties
Name Type Argument Description apiRoot
string <optional>
The api root. Optional, defaults to wpApiSettings.root. versionString
string <optional>
The version string. Optional, defaults to wpApiSettings.root. schema
object <optional>
The schema. Optional, will be fetched from API if not provided.