W3cubDocs

/WordPress

apply_filters( ‘_get_page_link’, string $link, int $post_id )

Filters the permalink for a non-page_on_front page.

Parameters

$linkstring
The page’s permalink.
$post_idint
The ID of the page.

Source

return apply_filters( '_get_page_link', $link, $post->ID );

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/_get_page_link