wp_die()
wp_die( mixed $message = '', mixed $title = '', mixed $args = array() ) Kills WordPress execution and displays HTML page with an error message.
Parameters 3 required
| Name / Type | Description |
|---|---|
| mixed | (string | WP_Error) $message Optional. Error message. If this is a WP_Error object, and not an Ajax or XML-RPC request, the error's messages are used. Default empty string. Required |
| mixed | (string | int) $title Optional. Error title. If `$message` is a `WP_Error` object, error data with the key 'title' may be used to specify the title. If `$title` is an integer, then it is treated as the response code. Default empty string. Required |
| mixed | (string | array | int) $args { Optional. Arguments to control behavior. If `$args` is an integer, then it is treated as the response code. Default empty array. Required |