Méthode | Description | |
---|---|---|
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 ) |
Méthode | Description | |
---|---|---|
akismet_is_active_and_registered ( ) : boolean | WP_Error | Is Akismet registered and active? |
public can_request ( ) : boolean | ||
Résultat | boolean | does a current user have enough privileges. |
public get_monitor_data ( ) : mixed | WP_Error | ||
Résultat | mixed | WP_Error | Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error. |
public get_protect_data ( ) : mixed | WP_Error | ||
Résultat | mixed | WP_Error | Number of blocked attempts if protection is enabled. Otherwise, a WP_Error instance with the corresponding error. |
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. } |
Résultat | integer | string | Number of spam blocked by Akismet. Otherwise, an error message. |
public get_vaultpress_data ( ) : mixed | WP_Error | ||
Résultat | mixed | WP_Error | VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
public get_verification_tools_data ( ) : mixed | WP_Error | ||
Résultat | mixed | WP_Error | List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error. |