the_shortlink

過濾鉤子
apply_filters( 'the_shortlink', $link, $shortlink, $text, $title )
引數
  • (string) $link Shortlink anchor tag.
    Required:
  • (string) $shortlink Shortlink URL.
    Required:
  • (string) $text Shortlink's text.
    Required:
  • (string) $title Shortlink's title attribute.
    Required:
定義位置
相關勾子
get_shortlinkthe_author_linkpre_get_shortlinkthe_author_posts_linkthe_permalink
相關方法
the_shortlinkthe_author_linkwp_get_shortlinkget_shortcut_linkthe_author_posts_linkget_the_author_link
引入
3.0.0
棄用
-

the_shortlink是一個模板標籤,用於顯示一個文章或頁面的簡短URL。短連結是固定連結的緊湊版本,可用於完整固定連結太長的情況,例如在Twitter或SMS訊息中。

過濾文章的短連結錨標籤。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );

常見問題

FAQs
檢視更多 >