Property | Type | Description | |
---|---|---|---|
$store | Papi_Post_Store | The post store class. |
Method | Description | |
---|---|---|
__construct ( ) | REST API Post construct. | |
get_page_type ( array $data, string $field_name, WP_REST_Request $request ) : array | Get page type. | |
get_post ( WP_Post $post ) : WP_Post | Filter the post. | |
prepare_response ( WP_REST_Response $response ) : WP_REST_Response | Prepare response. | |
setup_fields ( ) | Setup REST API fields. |
Method | Description | |
---|---|---|
prepare_property_value ( string $slug, mixed $default = null ) : mixed | Prepare property value. |
public get_post ( WP_Post $post ) : WP_Post | ||
$post | WP_Post | |
return | WP_Post |
public prepare_response ( WP_REST_Response $response ) : WP_REST_Response | ||
$response | WP_REST_Response | |
return | WP_REST_Response |