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)
in reply to:
4 years ago
3 years ago
- Keywords needs-refresh removed
- Milestone changed from Awaiting Review to 4.0