0

A plugin I want to use has a filter like so:

add_action('comment_form_after','yoast_track_comment_form');

The theme I'm using doesn't use the comment_form() call and I believe that this means the filter isn't being called. The yoast_track_comment_form just adds some jquery tracking, so what is the best way to trigger it.

Should I just call it directly from within the plugin code?

1

You can simply place the hook yourself in your theme (or better: Child theme) template:

do_action( 'comment_form_after' );
  • This worked. Thank you for showing me how to trigger these events. – Adam Bell Nov 22 '11 at 1:04
  • @Adam Could you please mark it as solved? – kaiser Nov 22 '11 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.