PHP 클래스 Papi_REST_API_Post, papi

파일 보기 프로젝트 열기: wp-papi/papi

보호된 프로퍼티들

프로퍼티 타입 설명
$store Papi_Post_Store The post store class.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
prepare_property_value ( string $slug, mixed $default = null ) : mixed Prepare property value.

메소드 상세

__construct() 공개 메소드

REST API Post construct.
public __construct ( )

get_page_type() 공개 메소드

Get page type.
public get_page_type ( array $data, string $field_name, WP_REST_Request $request ) : array
$data array
$field_name string
$request WP_REST_Request
리턴 array

get_post() 공개 메소드

Register all properties with register_meta and prepare response filter.
public get_post ( WP_Post $post ) : WP_Post
$post WP_Post
리턴 WP_Post

prepare_property_value() 보호된 메소드

Prepare property value.
protected prepare_property_value ( string $slug, mixed $default = null ) : mixed
$slug string
$default mixed
리턴 mixed

prepare_response() 공개 메소드

Prepare response.
public prepare_response ( WP_REST_Response $response ) : WP_REST_Response
$response WP_REST_Response
리턴 WP_REST_Response

setup_fields() 공개 메소드

Setup REST API fields.
public setup_fields ( )

프로퍼티 상세

$store 보호되어 있는 프로퍼티

The post store class.
protected Papi_Post_Store $store
리턴 Papi_Post_Store