wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

Add `get_page_by_path` hooks

Open xipasduarte opened this issue 1 year ago • 0 comments

Adds a couple of hooks to filter values inside the function get_page_by_path.

  • page_by_path_cache_key filters the value for the cache key.
  • page_by_path_id filters the found ID.

Trac ticket: core.trac.wordpress.org/ticket/57622


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

xipasduarte avatar Jul 18 '24 22:07 xipasduarte