I’m trying to figure out how to add a piece of reminder text to my WordPress site’s comment form. I can get it to work by copying my parent theme’s comments.php file and inserting the text here:
<?php comment_form(array('comment_notes_after' => '')); ?>
It seems like I should be able to set the comment_notes_after argument with a filter hook from the child theme’s functions.php file, but I’m still trying to get my head around the filter hook concept and I can’t figure out how to do it.
I know I need to define a function and then use add_filter to hook that filter to the comment_form function, but I’m not grasping at all what the function needs to be.
Sorry if this is obtuse — I’m not a programmer and a lot of this is entirely new to me.
- The topic ‘Setting comment_notes_after in comment_form’ is closed to new replies.