PHP 클래스 WP_REST_Post_Statuses_Controller, wordpress

상속: extends WP_REST_Controller
파일 보기 프로젝트 열기: johnpbloch/wordpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
get_collection_params ( ) : array Retrieves the query params for collections.
get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response Retrieves a specific post status.
get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean Checks if a given request has access to read a post status.
get_item_schema ( ) : array Retrieves the post status' schema, conforming to JSON Schema.
get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response Retrieves all post statuses, depending on user context.
get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean Checks whether a given request has permission to read post statuses.
prepare_item_for_response ( stdClass $status, WP_REST_Request $request ) : WP_REST_Response Prepares a post status object for serialization.
register_routes ( ) Registers the routes for the objects of the controller.

보호된 메소드들

메소드 설명
check_read_permission ( object $status ) : boolean Checks whether a given post status should be visible.

메소드 상세

__construct() 공개 메소드

Constructor.
부터: 4.7.0
public __construct ( )

check_read_permission() 보호된 메소드

Checks whether a given post status should be visible.
부터: 4.7.0
protected check_read_permission ( object $status ) : boolean
$status object Post status.
리턴 boolean True if the post status is visible, otherwise false.

get_collection_params() 공개 메소드

Retrieves the query params for collections.
부터: 4.7.0
public get_collection_params ( ) : array
리턴 array Collection parameters.

get_item() 공개 메소드

Retrieves a specific post status.
부터: 4.7.0
public get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response
$request WP_REST_Request Full details about the request.
리턴 WP_Error | WP_REST_Response Response object on success, or WP_Error object on failure.

get_item_permissions_check() 공개 메소드

Checks if a given request has access to read a post status.
부터: 4.7.0
public get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean
$request WP_REST_Request Full details about the request.
리턴 WP_Error | boolean True if the request has read access for the item, WP_Error object otherwise.

get_item_schema() 공개 메소드

Retrieves the post status' schema, conforming to JSON Schema.
부터: 4.7.0
public get_item_schema ( ) : array
리턴 array Item schema data.

get_items() 공개 메소드

Retrieves all post statuses, depending on user context.
부터: 4.7.0
public get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response
$request WP_REST_Request Full details about the request.
리턴 WP_Error | WP_REST_Response Response object on success, or WP_Error object on failure.

get_items_permissions_check() 공개 메소드

Checks whether a given request has permission to read post statuses.
부터: 4.7.0
public get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean
$request WP_REST_Request Full details about the request.
리턴 WP_Error | boolean True if the request has read access, WP_Error object otherwise.

prepare_item_for_response() 공개 메소드

Prepares a post status object for serialization.
부터: 4.7.0
public prepare_item_for_response ( stdClass $status, WP_REST_Request $request ) : WP_REST_Response
$status stdClass Post status data.
$request WP_REST_Request Full details about the request.
리턴 WP_REST_Response Post status data.

register_routes() 공개 메소드

Registers the routes for the objects of the controller.
또한 보기: register_rest_route()
부터: 4.7.0
public register_routes ( )