Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Any way to add the "spam tool" to a custom registration form?
Avatar
ionblue
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2014 - 12:02 pm

I'd like to create a completely custom registration form without the need to hack into the wp_login file, but I'd also like to keep the "spam tool" function of SP. Is there a way to hook into that on a custom form?

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2014 - 12:13 pm

Absolutely. Taking the standard WordPress registration form just make sure you include all of the 'do_action' and 'apply_filters' calls in the correct place with the same parameters.

Have you looked at some of the options available in WordPress plugins. Theme My Login - for example - also, I believe, can build a custom registration form. We used to do it within Simple:Press but the WordPress core used to change so often in this area we were constantly having to  change it to match and in the end just gave up! Although in al fairness I think it has settled down more in recent times.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ionblue
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2014 - 12:20 pm

Thanks sir. Yeah I'm trying to utilize a plugin, but it didn't tie into the stock registration form at all. So I just added do_action('register_form') in the appropriate spot and sure enough everything else rendered. Don't know why I didn't think of that!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2014 - 12:30 pm

Those filter and action hooks are really smart and one of the best things that WordPress every put in place. Makes all this possible...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626