Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Action hook eMember_profile_updated not working
Tagged: action hook
- This topic has 8 replies, 2 voices, and was last updated 6 years, 3 months ago by admin.
-
AuthorPosts
-
July 23, 2018 at 3:19 pm #14978jasminSpectator
I’m using WP eMember with the Form Builder extension to create a registration form with many custom fields. Everything is working fine. The registration process and the Edit Profile process write the proper Data in the “wp_wp_members_meta_tbl” table.
Now I need a function that will call if some data has changed in this table. So I tried to use the three following action hooks:
– eMember_registration_complete
– eMember_registration_complete_admin_side
– eMember_profile_updated
Everything was working fine, but the “eMember_profile_updated” hook does not fire after I changed some data at the “Edit Profile” page.
Don’t understand why, I already tried a lot to fix the issue but without any effect. It seems to me like the hook does not exist.
There is my code:
add_action('eMember_profile_updated', 'run_my_custom_function', 10, 2);
function run_my_custom_function($fields, $custom_fields){
$member_id = $fields['member_id'];
$username = $fields['username'];
print $username . ', ' . $member_id;
}It would be really nice to get some help here cause I don’t have more ideas.
Thank you very much!
July 24, 2018 at 9:34 am #78207adminKeymasterHi, What version of the emember plugin are you using at the moment?
July 24, 2018 at 1:01 pm #78208jasminSpectatorI’m using the current version 10.0.5 of WP eMember and the current version 4.9 of Form Builder
July 25, 2018 at 12:43 am #78209adminKeymasterI needed to add that hook to the form builder addon. I have sent you the updated copy via email.
Form builder now triggers the following 2 hooks after a profile edit:
eMember_profile_updated
eMember_profile_updated_form_builder
July 30, 2018 at 9:18 am #78210jasminSpectatorPerfect thank you J
So that changes will be also in the next update of the form builder addon?
Due to I don’t want to override this changes if I update form builder next time.
July 31, 2018 at 1:15 am #78211adminKeymasterYep, that changes were committed to the main code base. So it will be there in the future.
July 31, 2018 at 8:26 am #78212jasminSpectatorOk perfect.
One last question, to which e-mail address did you send the updated copy of the form builder?
Cause the e-mail here is from my company and they told me that they didn’t get something.
Would it possible to send me the mail again, but to my personal e-mail? [email removed]
Thank you very much!
[/email]
July 31, 2018 at 8:48 am #78213jasminSpectatorOk, I’m sorry we found the email now, but the link inside unfortunately is expired now.
August 1, 2018 at 12:39 am #78214adminKeymasterI have sent you another one just now.
-
AuthorPosts
- You must be logged in to reply to this topic.