_get_page_link WordPress Filter Hook
The get_page_link WordPress hook is used to retrieve the URL for a given page. This hook is useful for creating custom pagination or for linking to specific pages in your theme.
apply_filters( '_get_page_link', string $link , int $post_id ) #
Filters the permalink for a non-page_on_front page.
Parameters
- $link
(string)The page's permalink.
- $post_id
(int)The ID of the page.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |