wp-recaptcha-integration icon indicating copy to clipboard operation
wp-recaptcha-integration copied to clipboard

No reCaptcha shown, if 'comment_notes_after' of the comment_form args is used..

Open SamReciter opened this issue 10 years ago • 2 comments

I use a custom comments.php - and use the comment_form functions arguments for customizing the comment form. If i use/change the 'comment_notes_after' argument - no reCaptcha is shown. That's pretty annoying as you always have the default text there (the one with the allowed tags). No problem to hide it with display:none via css - but that's one messy workarround =). WP Version is 4.1.1 - your plugin in Version 1.1.1 Greets - great plugin else...

SamReciter avatar Mar 17 '15 15:03 SamReciter

@SamReciter the plugin hooks into comment_form_defaults filter with priority 10. If you hook into the same filter a little earlier (like add_filter('comment_form_defaults','something',9);), the captcha should be there again.

mcguffin avatar Mar 17 '15 16:03 mcguffin

Thanks you both - i will try @mcguffin 's suggestion and give a feedback later. @Cristian - it's a work on progress for a friends company - i don't know if i can give you more than example code.

'', 'fields'=> apply_filters('comment_form_default_fields',array( 'author'=> '

'. ''. '

', 'email'=> '

'. ''. '

', 'url'=>'')), 'comment_field'=> '

'. ''. '

', 'comment_notes_before'=>'', /\* 'comment_notes_after'=>'' if uncommented, reCaptcha won't show */); comment_form($comment_args); ?>

Greets...

Jörn Lund [email protected] schrieb am Di., 17. März 2015 um 17:22 Uhr:

@SamReciter https://github.com/SamReciter the plugin hooks into comment_form_defaults filter with priority 10. If you hook into the same filter a little earlier (like add_filter('comment_form_defaults','something',9);), the captcha should be there again.

— Reply to this email directly or view it on GitHub https://github.com/mcguffin/wp-recaptcha-integration/issues/22#issuecomment-82443849 .

SamReciter avatar Mar 17 '15 16:03 SamReciter