get_page_uri filter-hookWP 4.4.0

Filters the URI for a page.

Usage

add_filter( 'get_page_uri', 'wp_kama_get_page_uri_filter', 10, 2 );

/**
 * Function for `get_page_uri` filter-hook.
 * 
 * @param string  $uri  Page URI.
 * @param WP_Post $page Page object.
 *
 * @return string
 */
function wp_kama_get_page_uri_filter( $uri, $page ){

	// filter...
	return $uri;
}
$uri(string)
Page URI.
$page(WP_Post)
Page object.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

get_page_uri()
get_page_uri
wp-includes/post.php 5944
return apply_filters( 'get_page_uri', $uri, $page );

Where the hook is used in WordPress

Usage not found.