You appear to be a bot. Output may be restricted
Description
Get number of spam messages blocked by Akismet.
Usage
$int|string = Jetpack_Core_API_Module_Data_Endpoint::get_akismet_data();
Parameters
Returns
int|string Number of spam blocked by Akismet. Otherwise, an error message.
Source
File name: jetpack/_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php
Lines:
1 to 7 of 7
public function get_akismet_data() { if ( ! is_wp_error( $status = $this->akismet_is_active_and_registered() ) ) { return rest_ensure_response( Akismet_Admin::get_stats( Akismet::get_api_key() ) ); } else { return $status->get_error_code(); } }