_get_page_link

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Retrieves the page permalink.

Syntax

_get_page_link( int|WP_Post $post = false, bool $leavename = false, bool $sample = false )

DescriptionDescription

Ignores page_on_front. Internal use only.

ParametersParameters

$post

(int|WP_Post) (Optional) Post ID or object. Default uses the global $post.

Default value: false

$leavename

(bool) (Optional) Whether to keep the page name.

Default value: false

$sample

(bool) (Optional) Whether it should be treated as a sample permalink.

Default value: false

ReturnReturn

(string) The page permalink.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top