I am trying to change the title which is shown in Tabs/Windows when visiting a page you have no access to, where it now says "WordPress > Error".
This is how far I have come, but it doesn't work at all:
add_filter( 'wp_die_handler', 'change_die_wpse_120304' );
function change_die_wpse_120304()
{
return 'do_wp_die_wpse_120304';
}
function do_wp_die_wpse_120304( $message, $title, $args )
{
return 'Mynewtitle'.' • '.$title.' ‹ '.get_bloginfo('name');
}
I think wp_die_handler has something to do with this, but I cannot find any solution for this.