Skip to main content
SnippetsWordpress

Customize wp_die output

By September 1, 2019April 11th, 2020No Comments

I like that we can kill WordPress AND customize the output! Drop this code into functions or plugin at the part you want to kill WordPress and modify the markup to your liking! Even has CSS…

wp_die( __( '<style>html{background:#000;}</style><h1>Please excuse the mess!</h1><p>Site under construction</p>' ) );

Contact us to learn more about Adopt the Web for your business

Author Jarod Thornton

More posts by Jarod Thornton