the_shortlink

FUNCTION wp-includes\link-template.php (ligne 4250) github
Displays the shortlink for a post. Must be called from inside "The Loop" Call like the_shortlink( __( 'Shortlinkage FTW' ) )

Paramètres

Entrée :
$text = '', $title = '', $before = '', $after = ''
Sortie :
@param string $text   Optional. The link text or HTML to be displayed. Defaults to 'This is the short link.'
@param string $title  Unused.
@param string $before Optional. HTML to display before the link. Default empty.
@param string $after  Optional. HTML to display after the link. Default empty.

Utilisation

// Utilisation de la fonction the_shortlink
$result = the_shortlink($text = '', $title = '', $before = '', $after = '');

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...