As an alternative to filtering, this method would be used to replace <title><?php wp_title(); ?></title>
in your header.php file (ideally in a child theme).
bloginfo('name','description');
will display the site title and description.
From Function Reference/bloginfo
- 'name' - Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.
- 'description' - Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the
wp_options table.
Here's an example given for displaying title and description in the title section of your header.php:
<title><?php bloginfo('name','description'); ?></title>