PHP 클래스 WC_REST_Webhooks_Controller

상속: extends WC_REST_Posts_Controller
파일 보기 프로젝트 열기: woocommerce/woocommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$namespace string Endpoint namespace.
$post_type string Post type.
$rest_base string Route base.

공개 메소드들

메소드 설명
__construct ( ) Initialize Webhooks actions.
create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response Create a single webhook.
delete_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error Delete a single webhook.
get_collection_params ( ) : array Get the query params for collections of attachments.
get_item_schema ( ) : array Get the Webhook's schema, conforming to JSON Schema.
prepare_item_for_response ( $post, WP_REST_Request $request ) : WP_REST_Response Prepare a single webhook output for response.
query_args ( array $args, WP_REST_Request $request ) : array Query args.
register_routes ( ) Register the routes for webhooks.
update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response Update a single webhook.

보호된 메소드들

메소드 설명
prepare_item_for_database ( WP_REST_Request $request ) : WP_Error | stdClass Prepare a single webhook for create or update.

메소드 상세

__construct() 공개 메소드

Initialize Webhooks actions.
public __construct ( )

create_item() 공개 메소드

Create a single webhook.
public create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response
$request WP_REST_Request Full details about the request.
리턴 WP_Error | WP_REST_Response

delete_item() 공개 메소드

Delete a single webhook.
public delete_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error
$request WP_REST_Request Full details about the request.
리턴 WP_REST_Response | WP_Error

get_collection_params() 공개 메소드

Get the query params for collections of attachments.
public get_collection_params ( ) : array
리턴 array

get_item_schema() 공개 메소드

Get the Webhook's schema, conforming to JSON Schema.
public get_item_schema ( ) : array
리턴 array

prepare_item_for_database() 보호된 메소드

Prepare a single webhook for create or update.
protected prepare_item_for_database ( WP_REST_Request $request ) : WP_Error | stdClass
$request WP_REST_Request Request object.
리턴 WP_Error | stdClass $data Post object.

prepare_item_for_response() 공개 메소드

Prepare a single webhook output for response.
public prepare_item_for_response ( $post, WP_REST_Request $request ) : WP_REST_Response
$request WP_REST_Request Request object.
리턴 WP_REST_Response $response Response data.

query_args() 공개 메소드

Query args.
public query_args ( array $args, WP_REST_Request $request ) : array
$args array
$request WP_REST_Request
리턴 array

register_routes() 공개 메소드

Register the routes for webhooks.
public register_routes ( )

update_item() 공개 메소드

Update a single webhook.
public update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response
$request WP_REST_Request Full details about the request.
리턴 WP_Error | WP_REST_Response

프로퍼티 상세

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

Endpoint namespace.
protected string $namespace
리턴 string

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

Post type.
protected string $post_type
리턴 string

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

Route base.
protected string $rest_base
리턴 string