wp_die_jsonp_handler
Filter HookDescription
Filters the callback for killing WordPress execution for JSONP REST requests.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3797 |
Hook Parameters
Type | Name | Description |
---|---|---|
callable
|
$callback
|
Callback function name. |
Usage Examples
Basic Usage
<?php
// Hook into wp_die_jsonp_handler
add_filter('wp_die_jsonp_handler', 'my_custom_filter', 10, 1);
function my_custom_filter($callback) {
// Your custom filtering logic here
return $callback;
}
Source Code Context
wp-includes/functions.php:3797
- How this hook is used in WordPress core
<?php
3792 *
3793 * @since 5.2.0
3794 *
3795 * @param callable $callback Callback function name.
3796 */
3797 $callback = apply_filters( 'wp_die_jsonp_handler', '_jsonp_wp_die_handler' );
3798 } elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
3799 /**
3800 * Filters the callback for killing WordPress execution for XML-RPC requests.
3801 *
3802 * @since 3.4.0
PHP Documentation
<?php
/**
* Filters the callback for killing WordPress execution for JSONP REST requests.
*
* @since 5.2.0
*
* @param callable $callback Callback function name.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.