apply_filters( ‘page_link’, string $link, int $post_id, bool $sample )

In this article

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

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.