public static function set_alert( $request ) { delete_option( 'akismet_alert_code'
);
delete_option( 'akismet_alert_msg'
);
// Make a request so the most recent alert code and message are retrieved.
Akismet::
verify_key( Akismet::
get_api_key() );
return self::
get_alert( $request );
} /**
* Clear the current alert code and message.
*
* @param WP_REST_Request $request
* @return WP_Error|WP_REST_Response
*/
public static function delete_alert( $request ) { delete_option( 'akismet_alert_code'
);
delete_option( 'akismet_alert_msg'
);