コメント投稿者への通知メールを停止したい
-
タイトルの通り、コメント投稿者へのコメント通知メールを停止したいと思っております。
コメントをいただいた方が、通知メールを停止してほしいと希望されているのですが、方法が分からずお教えいただけますと幸いです。
使用しているテーマはxeoryです。
https://xeory.jp/コメント表示箇所のソースは
<?php comments_template( ”, true ); ?>
となっております。また、commen.phpがあり、内容は以下になります。
<?php if ( post_password_required() ) { return; } ?> <div id="comments" class="comments-area"> <?php if ( have_comments() ) : ?> <h4 class="comments-title"> <?php //printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), // number_format_i18n( get_comments_number() ), get_the_title() ); ?> <i class="fa fa-comments-o"></i> コメント </h4> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> </nav><!-- #comment-nav-above --> <?php endif; // Check for comment navigation. ?> <ol class="comment-list"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size'=> 48, 'type' => 'comment' ) ); ?> </ol><!-- .comment-list --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> </nav><!-- #comment-nav-below --> <?php endif; // Check for comment navigation. ?> <?php if ( ! comments_open() ) : ?> <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php $com_args = array( 'comment_notes_before' => '',/* ここで「メールアドレスが公開されることはありません」を削除 */ 'fields' => array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<br /><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" /></p>',/* ここは投稿者名のフォーム */ 'email' => '<p class="comment-form-email"><label for="email">' . __( 'メールアドレス(公開はされません。)' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<br /><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" /></p>',/* ここはメールアドレスのフォーム。文言を変えてます。 */ 'url' => '',),/* ここはURLのフォーム。削除している。 */ ); comment_form( $com_args ); ?> </div><!-- #comments -->
よろしくお願い致します。
- トピック「コメント投稿者への通知メールを停止したい」には新たに返信することはできません。