WordPress filter hook

json_api_http_status

Fired by 4 WordPress plugins, running on 4,080+ sites between them.

How to use json_api_http_status

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'json_api_http_status', function( $http_status ) {
	// Change $http_status here.
	return $http_status;
}, 10, 1 );

Argument names come from AliNext's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire json_api_http_status

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. AliNext icon AliNext4,000+ installs apply_filters( 'json_api_http_status', $http_status ) includes/libs/json_api/singletons/response.php:104
  2. Appeto icon Appeto50+ installs apply_filters( 'json_api_http_status', $http_status ) json-api/singletons/response.php:106
  3. Dropshipping with Banggood for WooCommerce (Lite version) icon Dropshipping with Banggood for WooCommerce (Lite version)20+ installs apply_filters( 'json_api_http_status', $http_status ) includes/libs/b2wl_json_api/singletons/response.php:113
  4. Android and iOS App plugin for WooCommerce by WSD icon Android and iOS App plugin for WooCommerce by WSD10+ installs apply_filters( 'json_api_http_status', $http_status ) singletons/response.php:106

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.