get_page_uri WordPress Filter Hook
The get_page_uri hook is used to retrieve the URI for a given page. This can be useful for creating custom permalinks or for redirecting users to the correct page.
apply_filters( 'get_page_uri', string $uri , WP_Post $page ) #
Filters the URI for a page.
Parameters
- $uri
(string)Page URI.
- $page
(WP_Post)Page object.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |