WordPress Example | Modify WordPress Header Title

This wordpress example code shows us how to modify wordpress header title. It is very useful when you plan to create a customized title for post.

add_filter('document_title_parts' , 'render_title' );
function render_title($parts){
    $parts["title"] = "NoteHope ". $parts["title"];
    return $parts;
}