Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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