public static function updated_option( $old_value,
$value ) { // Not an API call
if ( !
class_exists( 'WPCOM_JSON_API_Update_Option_Endpoint'
) ) { return;
} // Only run the registration if the old key is different.
if ( $old_value !==
$value ) { self::
verify_key( $value );
} } /**
* 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 ) {