PHP 클래스 Jetpack_Core_API_Data, jetpack

부터: 4.3.0
부터: 4.4.0 Renamed Jetpack_Core_API_Module_Endpoint from to Jetpack_Core_API_Data.
저자: Automattic
상속: extends Jetpack_Core_API_XMLRPC_Consumer_Endpoint
파일 보기 프로젝트 열기: automattic/jetpack

공개 메소드들

메소드 설명
can_request ( WP_REST_Request $request ) : boolean Check if user is allowed to perform the update.
get_module ( WP_REST_Request $data ) : mixed | void | WP_Error Get information about a specific and valid Jetpack module.
process ( WP_REST_Request $data ) : boolean | mixed | void | WP_Error Process request by returning the module or updating it.
update_data ( WP_REST_Request $data ) : boolean | WP_Error If it's a valid Jetpack module and configuration parameters have been sent, update it.

비공개 메소드들

메소드 설명
_process_post_by_email ( string $endpoint, string $error ) : array Calls WPCOM through authenticated request to create, regenerate or delete the Post by Email address.

메소드 상세

can_request() 공개 메소드

Check if user is allowed to perform the update.
부터: 4.3.0
public can_request ( WP_REST_Request $request ) : boolean
$request WP_REST_Request
리턴 boolean

get_module() 공개 메소드

Get information about a specific and valid Jetpack module.
부터: 4.3.0
public get_module ( WP_REST_Request $data ) : mixed | void | WP_Error
$data WP_REST_Request { Array of parameters received by request. @type string $slug Module slug. }
리턴 mixed | void | WP_Error

process() 공개 메소드

Process request by returning the module or updating it.
부터: 4.3.0
public process ( WP_REST_Request $data ) : boolean | mixed | void | WP_Error
$data WP_REST_Request
리턴 boolean | mixed | void | WP_Error

update_data() 공개 메소드

If it's a valid Jetpack module and configuration parameters have been sent, update it.
부터: 4.3.0
public update_data ( WP_REST_Request $data ) : boolean | WP_Error
$data WP_REST_Request { Array of parameters received by request. @type string $slug Module slug. }
리턴 boolean | WP_Error True if module was updated. Otherwise, a WP_Error instance with the corresponding error.