How to access user information from PieRegister

Home Forums Pie-Register 2.0 Support How to access user information from PieRegister

This topic contains 1 reply, has 2 voices, and was last updated by  Hasnain Abbas 1 year, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4761

    Nuno Mendes
    Participant

    Hello,

    I want to know if its possible to do these two things on PieRegister:

    – Access via PHP to the added register fields of the user (I know they are at wp_usermeta, how do I access directly the fields? Are there any functions?)

    – Make a POST call with the registration fields to a 3rd party webservice

    Thanks in advance,

    Nuno

    #4764

    Hasnain Abbas
    Keymaster

    Hello,

    You can POST registrant data to any 3rd party on the fly using HOOKs PR provides. Like the following example:

    add_action('pie_register_after_register_validate','my_custom_post_registration',10,1);
    function my_custom_post_registration($user){
        //Do something here
        //You have user Object and POST data here...
    }

    For accessing any field you need to have the Field name that can be pulled from browser console.

    Thanks

    • This reply was modified 1 year, 11 months ago by  Hasnain Abbas.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.