Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#57622 new enhancement

Add filter to get_page_by_path

Reported by: uzumymw's profile uzumymw Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:


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.

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.

17 months ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.