comment_author_email

Sponsored Link

リンクしていないコメントの投稿者のEメールアドレスを表示します。
“ユーザーは名前とメールアドレスを記入しなければならない場合”にディスカッションのオプションで有効にした場合、Eメールアドレスを提供する必要があります。
このタグは、ループ、またはコメントループ内でなければなりません。

Sponsored Link

Displays the comment author’s email address, not linked. An email address must be provided if “User must fill out name and email” is enabled under Discussion Options. This tag must be within The Loop, or a comment loop.

comment_author_emailのテンプレートタグ使用方法

<?php comment_author_email(); ?>

<a href="mailto:<?php comment_author_email(); ?>">contact 
<?php comment_author(); ?></a>

(注:emailスパマーがあなたのサイトからそれを収集する事ができるため、emailアドレスを表示する事は推奨されません。)

(Note: Displaying email addresses is not recommended, as email spammers could collect them from your site.)

comment_author_emailのパラメーター

このタグには、パラメーターがありません。

This tag has no parameters.

関連テンプレートタグ

comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comment_author_rss, comment_text_rss, permalink_comments_rss, wp_list_comments, comment_reply_link, cancel_comment_reply_link, comment_form_title, comment_id_fields, previous_comments_link, next_comments_link, paginate_comments_links

Sponsored Link