permalink_anchor

SummerySummery

Displays the permalink anchor for the current post.

Syntax

permalink_anchor( string $mode = 'id' )

DescriptionDescription

The permalink mode title will use the post title for the ‘a’ element ‘id’ attribute. The id mode uses ‘post-‘ with the post ID for the ‘id’ attribute.

ParametersParameters

$mode

(string) (Optional) Permalink mode. Accepts 'title' or 'id'.

Default value: 'id'

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
0.71 Introduced.
Scroll to Top