page_link WordPress Filter Hook
The page_link WordPress hook is used to filter the permalink for a page. This hook is used when a page is being fetched from the database. The page_link hook is used to filter the permalink for a page. This hook is used when a page is being fetched from the database.
apply_filters( 'page_link', string $link , int $post_id , bool $sample ) #
Filters the permalink for a page.
Parameters
- $link
(string)The page's permalink.
- $post_id
(int)The ID of the page.
- $sample
(bool)Is it a sample permalink.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |