} /**
* Treat the creation of an API key the same as updating the API key to a new value.
*
* @param mixed $option_name Will always be "wordpress_api_key", until something else hooks in here.
* @param mixed $value The option value.
*/
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.
*/