[wp-trac] [WordPress Trac] #24763: Add filter to query in get_page_by_path function

WordPress Trac noreply at wordpress.org
Mon Jul 15 21:25:01 UTC 2013


#24763: Add filter to query in get_page_by_path function
-------------------------+-----------------------------
 Reporter:  zbtirrell    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Post Types   |    Version:  trunk
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 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'.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24763>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list