[wp-trac] [WordPress Trac] #57622: Add filter to get_page_by_path

WordPress Trac noreply at wordpress.org
Fri Feb 3 07:47:31 UTC 2023


#57622: Add filter to get_page_by_path
-------------------------------+-----------------------------
 Reporter:  uzumymw            |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Everything looks like that use `WP_Query` in `get_page_by_path` will be
 reverted [https://core.trac.wordpress.org/ticket/56689 56689].

 Therefore, I have an idea to add a filter that allows ability to control
 results.

 Example:
 `apply_filters('get_page_by_path', $found_page, $page_path, $output_type,
 $post_type)`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57622>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list