mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
75673887d1
commit
d09f6ef81c
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user