Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
_process_post_by_email ( string $endpoint, string $error ) : array | Calls WPCOM through authenticated request to create, regenerate or delete the Post by Email address. |
public can_request ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | |
return | boolean |
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. } |
return | mixed | void | WP_Error |
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. } |
return | boolean | WP_Error | True if module was updated. Otherwise, a WP_Error instance with the corresponding error. |