user_new_form Hook Conflict
-
Hey all,
I’m looking to add some fields to the new user registration page. I’ve been able to do this swimmingly, but with one caveat. My client (that I’m creating a plugin for) is using S2Member, which also utilizes the user_new_form hook to implement their function and add fields. This would be fine if my fields showed under theirs, but instead, the fields replace anything that S2Member adds. So as of now, these don’t seem to be able to coexist. Is there an issue with performing two functions on the user_new_form hook?
If there is a conflict, how can I call my function after that one…or before it…or at all?
I didn’t put this under S2Member, because it’s not really an issue with their code as much as a potential issue with WordPress. If some other plugin also used the same hook, I would presumably have the same issue there as well. Thoughts?
Here’s my one line that is causing the issue…if it helps at all.
`add_action( ‘user_new_form’, ‘my_super_awesome_custom_function’ );
Thanks in advance!
The topic ‘user_new_form Hook Conflict’ is closed to new replies.