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.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More