wp_die_json_handler WordPress Filter Hook

The wp_die_json_handler() function is a custom handler for wp_die() that outputs a JSON response. This can be useful for AJAX requests that return JSON data.

apply_filters( 'wp_die_json_handler', callable $callback ) #

Filters the callback for killing WordPress execution for JSON requests.


Parameters

$callback

(callable)Callback function name.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More