justintadlock / registration-honeypot

WordPress plugin for stopping most spambot registrations via a simple honeypot method.
17 stars 12 forks source link

BuddyPress support #3

Open slaFFik opened 10 years ago

justintadlock commented 10 years ago

I couldn't merge the pull request because it was on the stable master branch. I added it manually though.

The one thing I don't know about is the footer scripts. See line 115: https://github.com/justintadlock/registration-honeypot/blob/1.1.0/registration-honeypot.php#L115

Does BuddyPress have a special hook for the footer on its registration page? I'm assuming it doesn't use the login_footer hook.

slaFFik commented 10 years ago

Yes, it has. <?php do_action( 'bp_after_registration_submit_buttons' ); ?>

It's called after everything registration-related (where data should be filled by user).

justintadlock commented 10 years ago

The BuddyPress register form is on the front end, correct? Would the wp_footer hook not be more appropriate?

slaFFik commented 10 years ago

Yes, you are right, it's in front-end. And yes, it will be more appropriate to use wp_footer :) I was too concentrated on "BuddyPress special hook".