Opened 5 months ago
Add filter to query in get_page_by_path function
|Reported by:||zbtirrell||Owned by:|
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'.