Archived topic
Add comment policy via snippet?
3 replies · Started by LoGP on February 11, 2018
Viewing posts 1–4 of 4
Hey,
Is there a way to add a comment policy via a code snippet?
I could edit the comments.php file like so:
But if there's a code snippet that would be better :)
Cheers
L
Looks like WordPress has this action: comment_form_after
add_action( 'comment_form_after', 'tu_after_comment_form' );
function tu_after_comment_form() {
?>
Your text in here.
<?php
}
Nice man! It works.
I eventually used: comment_form_top to have the text between "leave a reply" and the form.
:)
Cheers
Lorenzo
Awesome, glad I could help! :)
This archived topic is closed to new replies.