diff --git a/src/wp-includes/post-functions.php b/src/wp-includes/post-functions.php index 2c4cda07ec..3933bbbc61 100644 --- a/src/wp-includes/post-functions.php +++ b/src/wp-includes/post-functions.php @@ -4288,7 +4288,15 @@ function get_page_uri( $page ) { } } - return $uri; + /** + * Filter the URI for a page. + * + * @since 4.4.0 + * + * @param string $uri Page URI. + * @param WP_Post $page Page object. + */ + return apply_filters( 'get_page_uri', $uri, $page ); } /**