Forum Replies Created
-
AuthorPosts
-
jojoking
ParticipantI’ve finally figured this out!
I have two levels of paid registration, Choirs and Delegates (Choir Members). So I opted to have different registration forms using the form builder addon. Problem is, this bypasses most of function regigstration_ui() where the hooks are…
By deactivating the addon, it now passes through my ‘swpm_front_end_registration_complete_user_data’ code.
This is the code in question
public function regigstration_ui($level) { //Trigger the filter to override the registration form (the form builder addon uses this filter) $form = apply_filters('swpm_registration_form_override', '', $level);//The $level value could be empty also so the code handling the filter need to check for it. if (!empty($form)) { //An addon has overridden the registration form. So use that one. return $form; }So for now, I’m going to have to do different registration forms in another way…
jojoking
ParticipantInitially, I wanted to make sure it wasn’t the if{} clause that was preventing writing to my ‘choir’ taxonomy. Then I put in the write to the debug file – this isn’t appearing, so that’s why I think it’s not using the hook
jojoking
ParticipantOkay, now the problem’s gone away… not sure what happened. I’ll keep an eye out for it in case it happens again.
-
AuthorPosts