Pass $post into 'protected_title_format' and 'private_title_format' filters
|Reported by:||johnjamesjacoby||Owned by:||SergeyBiryukov|
|Component:||Posts, Post Types||Keywords:||has-patch|
Currently it's only possible to change these prefixes globally.
Being able to change these prefixes based on specific $post data would be helpful for narrowing down the scope, say to specific custom post types.
I noticed also that we don't pass $post into the 'the_title' filter, which could cut down on an additional get_post() call later if we pass it here. Obviously not essential, but wouldn't hurt.
Change History (10)
comment:2 in reply to: ↑ 1 johnjamesjacoby — 16 months ago
- Component changed from Template to Posts, Post Types
- Focuses template added
comment:6 DrewAPicture — 7 weeks ago
- Keywords needs-refresh removed
- Milestone changed from Awaiting Review to 4.0