WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a site and sometimes I run into an error when logging out and on the site tab it says 'Wordpress Failure Notice'. I am trying to remove all instances of wordpress so users dont know Im using it, but I can not figure out how to remove the text from the tab. I dont have no code to try and show because Im not even sure where to start. The text shows up on the wp-login.php page and happens when trying to log out. That's all I know. So my question is how would I remove this, and change the text to something different?


share|improve this question
There are a dozen different ways to identify a site as a WordPress site. Trying to hide that is a waste of effort. – s_ha_dum Oct 28 '13 at 3:58
@s_ha_dum I just need to hide a few things from the average user. – mygm26 Nov 11 '13 at 5:32

this string is displayed when you get a nonce mismatch, something that should not happen much under normal usage. If it does haen enough to make you aware to it then you should investigate the cause.

Anyway, no easy filter for that string so you will have to use the translation api to replace it.

add_filter ( 'gettext', 'wpse_120304', 10, 3 );
function wpse_120304($translated, $original, $domain) {
  if ($original == 'WordPress Failure Notice')
    return 'Failure Notice'; // or something else
    return $translated;

or just use the "say what" plugin http://wordpress.org/plugins/say-what/ from which I have lifted the idea to this piece of code.

share|improve this answer

You'll probably want to take over all wp_die() messages and, as we can see, there are some hooks for that. Here, changing only the default one (not Ajax or XMLRPC):

add_filter( 'wp_die_handler', 'change_die_wpse_120304' );

# Modify wp_die_handler
function change_die_wpse_120304()
    return 'do_wp_die_wpse_120304';

# Make a copy of _default_wp_die_handler and adapt
# http://core.trac.wordpress.org/browser/tags/3.6/wp-includes/functions.php#L2067
function do_wp_die_wpse_120304( $message, $title, $args )
    // a new way to die()
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.