WPDev.one
Core Function
View Source on Trac ↗

the_shortlink()

the_shortlink( mixed $text = '', mixed $title = '', mixed $before = '', mixed $after = '' )

Displays the shortlink for a post.

Parameters 0 required

Name / Type Description
$text
string

Optional. The link text or HTML to be displayed. Defaults to 'This is the short link.'

$title
string

Unused.

$before
string

Optional. HTML to display before the link. Default empty.

$after
string

Optional. HTML to display after the link. Default empty.

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-includes/link-template.php
Advertisement