- Source:
Namespaces
Members
-
<static> loadPromise
-
Construct the default endpoints and add to an endpoints collection.
- Source:
-
<static> WPApiBaseCollection
-
Contains basic collection functionality such as pagination.
- Source:
-
<static> WPApiBaseModel
-
Backbone base model for all models.
- Source:
Methods
-
<static> getCollectionByRoute(route)
-
Determine collection based on API route.
Parameters:
Name Type Description routestring The API route. - Source:
Returns:
-
<static> getModelByRoute(route)
-
Determine model based on API route.
Parameters:
Name Type Description routestring The API route. - Source:
Returns:
-
<static> init( [args])
-
Initialize the wp-api, optionally passing the API root.
Parameters:
Name Type Argument Description argsobject <optional>
Properties
Name Type Argument Description noncestring <optional>
The nonce. Optional, defaults to wpApiSettings.nonce. apiRootstring <optional>
The api root. Optional, defaults to wpApiSettings.root. versionStringstring <optional>
The version string. Optional, defaults to wpApiSettings.root. schemaobject <optional>
The schema. Optional, will be fetched from API if not provided. - Source: