wp_die()
WordPress function that terminates execution and displays an error message, used for access control.
How it works
WordPress function that terminates execution and displays an error message, used for access control.
In WordPress
Use wp_die() instead of die() or exit() in WordPress handlers. It provides proper HTTP status codes and formatted output.
Related terms
WP HealthKit checks for wp_die()-related vulnerabilities automatically
Run a Free Audit