PHP 클래스 Jetpack_Core_API_Module_Data_Endpoint, jetpack

파일 보기 프로젝트 열기: automattic/jetpack

공개 메소드들

메소드 설명
can_request ( ) : boolean A WordPress REST API permission callback method that accepts a request object and decides if the current user has enough privileges to act.
get_akismet_data ( ) : integer | string Get number of spam messages blocked by Akismet.
get_monitor_data ( ) : mixed | WP_Error Get date of last downtime.
get_protect_data ( ) : mixed | WP_Error Get number of blocked intrusion attempts.
get_stats_data ( WP_REST_Request $data ) : integer | string Get stats data for this site
get_vaultpress_data ( ) : mixed | WP_Error Get VaultPress site data including, among other things, the date of the last backup if it was completed.
get_verification_tools_data ( ) : mixed | WP_Error Get services that this site is verified with.
process ( $request )

비공개 메소드들

메소드 설명
akismet_is_active_and_registered ( ) : boolean | WP_Error Is Akismet registered and active?

메소드 상세

can_request() 공개 메소드

A WordPress REST API permission callback method that accepts a request object and decides if the current user has enough privileges to act.
부터: 4.3.0
public can_request ( ) : boolean
리턴 boolean does a current user have enough privileges.

get_akismet_data() 공개 메소드

Get number of spam messages blocked by Akismet.
부터: 4.3.0
public get_akismet_data ( ) : integer | string
리턴 integer | string Number of spam blocked by Akismet. Otherwise, an error message.

get_monitor_data() 공개 메소드

Get date of last downtime.
부터: 4.3.0
public get_monitor_data ( ) : mixed | WP_Error
리턴 mixed | WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error.

get_protect_data() 공개 메소드

Get number of blocked intrusion attempts.
부터: 4.3.0
public get_protect_data ( ) : mixed | WP_Error
리턴 mixed | WP_Error Number of blocked attempts if protection is enabled. Otherwise, a WP_Error instance with the corresponding error.

get_stats_data() 공개 메소드

Get stats data for this site
부터: 4.1.0
public get_stats_data ( WP_REST_Request $data ) : integer | string
$data WP_REST_Request { Array of parameters received by request. @type string $date Date range to restrict results to. }
리턴 integer | string Number of spam blocked by Akismet. Otherwise, an error message.

get_vaultpress_data() 공개 메소드

Get VaultPress site data including, among other things, the date of the last backup if it was completed.
부터: 4.3.0
public get_vaultpress_data ( ) : mixed | WP_Error
리턴 mixed | WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error.

get_verification_tools_data() 공개 메소드

Get services that this site is verified with.
부터: 4.3.0
public get_verification_tools_data ( ) : mixed | WP_Error
리턴 mixed | WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error.

process() 공개 메소드

public process ( $request )