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.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More