wp_die_jsonp_handler WordPress Filter Hook

The wp_die_jsonp_handler hook is triggered when a JSONP response is required for a WP_Error object. This hook allows for a custom function to be defined which will handle the JSONP response. The function must take two arguments: the WP_Error object, and the callback function name.

apply_filters( 'wp_die_jsonp_handler', callable $callback ) #

Filters the callback for killing WordPress execution for JSONP REST requests.


Parameters

$callback

(callable)Callback function name.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.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