This code changes the WordPress dashboard title from “Dashboard” to a custom title like “WordPress Staging Site.”
function ts_custom_dashboard_name(){ if ( $GLOBALS['title'] != 'Dashboard' ){ return; } $GLOBALS['title'] = __( 'WordPress Staging Site' ); } add_action( 'admin_head', 'ts_custom_dashboard_name' );