Remove tagline (wordpress)

Remove tagline from front page title.

<?php
/**
 * Remove tagline from front page title.
 */
add_filter('document_title_parts', function($title) {
    if (is_front_page()) {
        unset($title['tagline']);
    }
    return $title;
});
?>

functions.php

< toolbox