A last customization touch that can be put in place to support our Book Reviews custom post type is to add custom information about the posts in the title bar when displaying them. For example, we could add the author's name next to the book title.
This recipe shows how to use the
document_title_parts filter to alter the post title for Book Reviews.
You should have already followed the Adding Quick Edit fields for custom categories recipe to have a starting point for this recipe, and the resulting plugin should still be active in your development site. Alternatively, you can get the resulting code (
Chapter 4/ch4-book-reviews/ch4-book-reviews-v10.php) from the downloaded code bundle and rename the file