Rename "Blog" when using GeneratePress

When using the GeneratePress WordPress Theme, the blog page is by default named “Blog”. If you want to change that name, you can use the following snippet:

add_filter( 'generate_page_hero_post_title', function ( $title ) {
	if ( is_home() ) {
		return 'This is my new blog name';
	}

	return $title;
} );