apply_filters( 'wp_php_error_args', array $args, array $error )
- Since
- 5.2.0
Filters the arguments passed to wp_die() for the default PHP error template.
Parameters
$argsarray- Associative array of arguments passed to
wp_die(). By default these contain a 'response' key, and optionally 'link_url' and 'link_text' keys. $errorarray- Error information retrieved from
error_get_last().
Fired at · 1
wp-includes/class-wp-fatal-error-handler.php:235WP_Fatal_Error_Handler::display_default_error_template()
Source
* @since 5.2.0 * * @param array $args Associative array of arguments passed to `wp_die()`. By default these contain a * 'response' key, and optionally 'link_url' and 'link_text' keys. * @param array $error Error information retrieved from `error_get_last()`. */ $args = apply_filters( 'wp_php_error_args', $args, $error ); $wp_error = new WP_Error( 'internal_server_error', $message, array( 'error' => $error,History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.