public static function added_option( $option_name,
$value ) { if ( 'wordpress_api_key' ===
$option_name ) { return self::
updated_option( '',
$value );
} } public static function rest_auto_check_comment( $commentdata ) { return self::
auto_check_comment( $commentdata, 'rest_api'
);
} /**
* Check a comment for spam.
*
* @param array $commentdata
* @param string $context What kind of request triggered this comment check? Possible values are 'default', 'rest_api', and 'xml-rpc'.
* @return array|WP_Error Either the $commentdata array with additional entries related to its spam status
* or a WP_Error, if it's a REST API request and the comment should be discarded.
*/
public static function auto_check_comment( $commentdata,
$context = 'default'
) {