• How can I change the browser title: ‘WordPress > error’:
    Error Browser title
    that shows up on the cheatin’ uh?
    Cheating uh page
    and you don’t have permission page:
    don't have permission
    to a text I prefer.

Viewing 1 replies (of 1 total)
  • Hello,

    Try appending this to your (child) theme’s functions.php:

    
    function custom_die_handler() {
        return 'the_custom_die_handler';    
    }
    add_filter( 'wp_die_handler', 'custom_die_handler' );
    
    function the_custom_die_handler( $message, $title, $args ) {
        _default_wp_die_handler( $message, 'Your Custom Title', $args );
    };
    

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Edit browser title’ is closed to new replies.