$args = array
( 'page' => 'akismet-key-config', 'view' => 'start', 'action' => 'delete-key', '_wpnonce' =>
wp_create_nonce( self::NONCE
) );
} elseif ( $page === 'init'
) { $args = array
( 'page' => 'akismet-key-config', 'view' => 'start'
);
} return add_query_arg( $args,
menu_page_url( 'akismet-key-config', false
) );
} public static function get_akismet_user( $api_key ) { $akismet_user = false;
$subscription_verification = Akismet::
http_post( Akismet::
build_query( array
( 'key' =>
$api_key, 'blog' =>
get_option( 'home'
) ) ), 'get-subscription'
);
if ( !
empty( $subscription_verification[1
] ) ) { if ( 'invalid' !==
$subscription_verification[1
] ) { $akismet_user =
json_decode( $subscription_verification[1
] );
} } return $akismet_user;
} public static function get_stats( $api_key ) {