• Hi

    I’m having an issue with the output of a particular action. I have a ninja forms registration form which registers a user with custom meta data. Looking at the source code I can see it does this by calling the method ‘add_user_meta’.

    This is working correctly as when I view my users in the backend they have the custom fields correctly populated.

    However I also need to do a custom action after this meta data has been inserted. It’s an API call to another system. I have been trying to hook into the actions ‘add_user_meta’ and ‘added_user_meta’ however when they are called the value of $meta_key and $meta_value is always NULL.

    Please can someone point me in the right direction on how to debug this?

Viewing 1 replies (of 1 total)
  • I believe your WordPress user meta hook is getting fired too early or too late. Most form plugins have their own hooks that fire during different stages of the submission. They are more precise than core WordPress hooks.

    I would look for docs about hooks on the plugin’s site and reach out to their support.

Viewing 1 replies (of 1 total)
  • The topic ‘Action add_user_meta passes null values’ is closed to new replies.