Skip to content

Commit 45d496e

Browse files
committed
New filter: json_api_http_status
1 parent b2ff3b9 commit 45d496e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

singletons/response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function respond($result, $status = 'ok', $http_status = 200) {
103103
}
104104

105105
function output($result, $http_status = 200) {
106+
$http_status = apply_filters('json_api_http_status', $http_status);
106107
$charset = get_option('blog_charset');
107108
if (!headers_sent()) {
108109
status_header($http_status);

0 commit comments

Comments
 (0)