comment_form when comments disabled
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘comment_form when comments disabled’ is closed to new replies.
The topic ‘comment_form when comments disabled’ is closed to new replies.
(@ear1grey)
19 years, 5 months ago
I’m hoping there is a filter which is called when comments are disabled. i.e. something similar to “comment_form” that is fired at the same point in the page generation, so that a plugin can add an explanation of why there is no comment form.
wp_footer is too late because the sidebar is generated between the comments and the footer… there must be something handy that I’ve missed…
Looking at the comments.php script I’ve manually added:
do_action(‘comment_end’, $post->ID);
…which does the trick, but am I missing an official hook?