How to access user information from PieRegister

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Pie Register 2 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10004761
    Avatar
    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

    #10004764
    Avatar
    Pie Register
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.