edit_tag_link
函数
edit_tag_link ( $link = '', $before = '', $after = '', $tag = null )
- 参数
-
-
(string)
$link
Optional. Anchor text. If empty, default is ‘Edit This’. Default empty.- Required: 否
- Default: (empty)
-
(string)
$before
Optional. Display before edit link. Default empty.- Required: 否
- Default: (empty)
-
(string)
$after
Optional. Display after edit link. Default empty.- Required: 否
- Default: (empty)
-
(WP_Term)
$tag
Optional. Term object. If null, the queried object will be inspected. Default null.- Required: 否
- Default: null
-
(string)
- 定义位置
-
-
wp-includes/link-template.php
, line 1051
-
wp-includes/link-template.php
- 引入
- 2.7.0
- 弃用
- –
Displays or retrieves the edit link for a tag with formatting.
function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) { $link = edit_term_link( $link, '', '', $tag, false ); /** * Filters the anchor tag for the edit link for a tag (or term in another taxonomy). * * @since 2.7.0 * * @param string $link The anchor tag for the edit link. */ echo $before . apply_filters( 'edit_tag_link', $link ) . $after; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。