Opened 8 months ago
Last modified 8 months ago
#57622 new enhancement
Add filter to get_page_by_path
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
Everything looks like that use WP_Query
in get_page_by_path
will be reverted 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)
Change History (1)
This ticket was mentioned in PR #3983 on WordPress/wordpress-develop by @uzumymw.
8 months ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/57622