You appear to be a bot. Output may be restricted
Description
Usage
Akismet_Admin::get_stats( $api_key );
Parameters
- $api_key
- ( mixed ) required –
Returns
void
Source
File name: akismet/class.akismet-admin.php
Lines:
1 to 13 of 13
public static function get_stats( $api_key ) { $stat_totals = array(); foreach( array( '6-months', 'all' ) as $interval ) { $response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' ); if ( ! empty( $response[1] ) ) { $stat_totals[$interval] = json_decode( $response[1] ); } } return $stat_totals; }