de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




get_tag_link [ WordPress Function ]

get_tag_link ( $tag )
Parameter:
  • (int|object) $tag Tag ID or object.
Siehe:
Gibt zurück:
  • (string) Link on success, empty string if tag does not exist.
Definiert in:



Retrieve the link to the tag.

Source


<?php
function get_tag_link$tag ) {
    if ( ! 
is_object$tag ) )
        
$tag = (int) $tag;

    
$tag get_term_link$tag'post_tag' );

    if ( 
is_wp_error$tag ) )
        return 
'';

    return 
$tag;
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics