wp_mail doesnt work inside transition_comment_status

* UPDATE * I have placed this function before the prev code // define the wp_mail_failed callback function action_wp_mail_failed($wp_error) { return error_log(print_r($wp_error, true)); } // add the action add_action(‘wp_mail_failed’, ‘action_wp_mail_failed’, 10, 1); Which helped me track the problem (using headers wrong). I share this in the hopes this helpes anyone while debugging wp_mail()

Comment field override

Actually, comment_field should be outside the $fields array. It is treated separately from the group of other fields. So, when i call comment_form(), i have to pass $fields array as one argument and then comment_field as another one. This way the system will override the default comment field.

Comments/Discussion Not enabled on newly created posts/pages

It could be a plugin that is modifying comment settings. First place to look. Then look at a new post/page. Are comments enabled for that page by default? (On the page/post edit screen, use ‘screen options’ to ensure that ‘comments’ checkbox is enabled, so you see that setting underneath the post content area.) Do you … Read more

Check if comment author has url

Solution Thanks to shanebp answer here <?php if( get_comment_author() == get_comment_author_link() ) comment_author_link(); else echo ‘<a href=”https://wordpress.stackexchange.com/questions/314265/site.com/go?url=”. get_comment_author_url() .”” target=”_blank”>’. get_comment_author() .'</a>’ ?>