From ac80d538db150732df965383d93d3576a4274e84 Mon Sep 17 00:00:00 2001 From: James Collins Date: Tue, 4 Feb 2020 11:35:10 +0800 Subject: [PATCH] Add OPTIONS http method --- includes/class-wp-rest-api-log-common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wp-rest-api-log-common.php b/includes/class-wp-rest-api-log-common.php index e7f52ef..2ef1d70 100644 --- a/includes/class-wp-rest-api-log-common.php +++ b/includes/class-wp-rest-api-log-common.php @@ -21,7 +21,7 @@ static public function microtime_to_milliseconds( $microtime ) { static public function valid_methods() { - return apply_filters( self::PLUGIN_NAME . '-valid-methods', array( 'GET', 'POST', 'PUT', 'PATCH', 'DELETE' ) ); + return apply_filters( self::PLUGIN_NAME . '-valid-methods', array( 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS' ) ); }