- サイトデザイン工事中です。ご意見をお寄せください。
- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/edit tag link
提供:WordPress Codex 日本語版
< テンプレートタグ
このページ「テンプレートタグ/edit tag link」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | phpdoc
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
目次 |
説明
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.
使い方
<?php edit_tag_link( $link, $before, $after, $tag ); ?>
パラメータ
- $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.
用例
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>'); ?>
変更履歴
- 2.7.0 : 新規テンプレートタグ
ソースファイル
edit_tag_link() is located in wp-includes/link-template.php.
最新英語版: WordPress Codex » Template Tags/edit_tag_link (最新版との差分)
関連
edit_post_link, edit_comment_link, edit_tag_link, edit_bookmark_link