- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/edit tag link
提供: WordPress Codex 日本語版
< テンプレートタグ
2010年3月3日 (水) 21:52時点におけるBono (トーク | 投稿記録)による版 (en:Template Tags/edit_tag_link 03:30, 22 January 2010 Ajuliano 版を翻訳用にコピー)
目次
Description
Displays a link to edit the current tag, if the user is logged in and allowed to edit the tag. It must be within The Loop.
Usage
%%% <?php edit_tag_link( $link, $before, $after, $tag ); ?> %%%
Parameters
- $link
- (string) (optional) The link text.
- 初期値: 'Edit This'
- $before
- (string) (optional) Text to put before the link text.
- 初期値: なし
- $after
- (string) (optional) Text to put after the link text.
- 初期値: なし
- $tag
- (int) (optional) Tag ID.
- 初期値: Current tag ID.
Examples
Default Usage
Displays edit tag link using defaults.
<?php edit_tag_link(); ?>
Displays Edit Tag in Paragraph Tag
Displays edit tag link, with link text "edit tag", in a paragraph (<p>) tag.
<?php edit_tag_link('edit tag', '<p>', '</p>'); ?>
Change Log
Since: 2.7.0
Source File
edit_tag_link() is located in wp-includes/link-template.php
.
最新英語版: WordPress Codex » Template Tags/edit_tag_link (最新版との差分)
Related
リンク編集: edit_post_link, edit_comment_link, edit_tag_link, edit_bookmark_link /en
関数リファレンス、テンプレートタグ目次もご覧ください。