Skip to content

Improves the wp_die() interface to include a back button and friendly message, pretty outputs for arrays and objects, and stack traces if WP_DEBUG is enabled

Notifications You must be signed in to change notification settings

tomjn/better-wp-die

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Better wp_die

This plugin adds a new wp_die handler which includes:

  • A permanent back button
  • A friendly message to help non-developers
  • Formatted output for arrays and objects
  • If WP_DEBUG is enabled, a stacktrace
  • A filter for adding a logo

Usage

Adding a logo is as simple as:

add_filter( 'better-wp-die-image', function () {
	return 'http://placekitten.com.s3.amazonaws.com/homepage-samples/200/286.jpg';
});

The logo will appear to the right at the top of the wp_die output.

About

Improves the wp_die() interface to include a back button and friendly message, pretty outputs for arrays and objects, and stack traces if WP_DEBUG is enabled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages