On this page
apply_filters( 'page_link', string $link, int $post_id, bool $sample )
Filters the permalink for a page.
Parameters
$linkstring-
The page's permalink.
$post_idint-
The ID of the page.
$samplebool-
Is it a sample permalink.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'page_link', $link, $post->ID, $sample );
Related
Used By
| Used By | Description |
|---|---|
| get_page_link() wp-includes/link-template.php | Retrieves the permalink for the current page or page ID. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/page_link