I do adjustments to a wordpress theme and want to change the title output for a custom post type. To be precise, I want to remove Work Type from it:

echo str_replace('Work Type ', '', wp_title(''));

Current output:

Work Type Title - What a site

Expected:

Title - What a site

Notes: