Pages: Introduce the get_page_uri filter, which makes it possible to manipulate a given page's URI before it's returned from the like-named get_page_uri().

Props tanner-m for the initial patch.
Fixes #15963.


git-svn-id: https://develop.svn.wordpress.org/trunk@35510 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-11-04 18:28:31 +00:00
parent 75673887d1
commit d09f6ef81c

View File

@ -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 );
}
/**