• サイトデザイン工事中です。ご意見をお寄せください
  • 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

テンプレートタグ/edit tag link

提供:WordPress Codex 日本語版
移動: 案内, 検索

このページ「テンプレートタグ/edit tag link」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

情報募集中 このテンプレートタグの説明やコードの書き方、活用例参考になるページがあったら、他のWordPressユーザのためにどんどん書き込みましょう! 該当部分を編集するか、このページのノートまたはフォーラム等で教えてください。

目次

説明

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>'); ?>

変更履歴

ソースファイル

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


個人用ツール
名前空間
変種
操作
このサイトについて
特集
サーバ別情報
リファレンス
ドキュメント整備
ツールボックス
他の言語