Add filter to query in get_page_by_path function
|Reported by:||zbtirrell||Owned by:||johnbillion|
|Component:||Posts, Post Types||Keywords:||has-patch|
We would like to be able to filter the query that is executed in get_page_by_path() so that we can have pages be children of a custom post_type.
To do this currently, we have to add a filter to 'query' and look for this specific query. This approach is unfortunately, quite expensive.
I am attaching a single line diff file that applies a filter to this query called 'get_page_by_path_request'.
Change History (14)
comment:3 in reply to: ↑ 2 SergeyBiryukov — 5 weeks ago
- Keywords needs-patch added; reporter-feedback removed
comment:5 SergeyBiryukov — 5 weeks ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.9