EPL_Rest_API Class
| Since | |
|---|---|
3.5.8 |
|
| Methods | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public
static
|
instance(): EPL_Rest_API
Insures that only one instance of EPL_Rest_API exists in memory.
Insures that only one instance of EPL_Rest_API exists in memory. Returnsinstance Since
|
# | ||||||||||||||
public
|
hooks()
Add hooks to Rest API.
Add hooks to Rest API. Since
|
# | ||||||||||||||
public
|
meta_to_rest_api(array $response, array $post, array $request): WP_REST_Response
Add EPL Meta data to Rest API.
Add EPL Meta data to Rest API. Parameters
Returns$response Since
|
# | ||||||||||||||
public
|
get_public_meta_keys(WP_Post $post): array
Meta keys returned to users who cannot edit the listing.
Meta keys returned to users who cannot edit the listing. Only fields the listing displays on the front end are allowed. Any other field, including fields added by extensions, is withheld unless added with the epl_rest_api_public_meta_keys filter. Fields are then removed when the listing or the site settings hide them. Parameters
ReturnsMeta keys. Since
|
# | ||||||||||||||