Class EPL_Rest_API
Methods summary
public static
EPL_Rest_API
|
#
instance( )
Insures that only one instance of EPL_Rest_API exists in memory.
Insures that only one instance of EPL_Rest_API exists in memory.
Returns
Since
3.5.8
|
public
|
#
hooks( )
Add hooks to Rest API.
Since
3.5.8
|
public
WP_REST_Response
|
#
meta_to_rest_api( array $response, array $post, array $request )
Add EPL Meta data to Rest API.
Add EPL Meta data to Rest API.
Parameters
- $response
- The response.
- $post
- The post.
- $request
- The request.
Returns
WP_REST_Response $response
Since
3.5.8
3.5.10 Fix error when group fields are empty.
3.5.27 Hidden and internal fields are only returned to users who can edit the listing.
3.5.28 Users who cannot edit the listing only receive public fields the listing displays.
|
public
array
|
#
get_public_meta_keys( WP_Post $post )
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
Returns
array Meta keys.
Since
3.5.28
|