Grow your CSS skills. Land your dream job.

WordPress – Do something immediately after new user registration..

  • # March 4, 2013 at 5:54 am

    hi,

    just wanted to know if i can manually call a php function that sends data to another service as soon as a new user is registered.

    the user can either be registered by wordpress registration form or by various social login.

    for e.g :-

    i want to call webusercreate() which is located in xxxx/webusercreate.utils.php

    Thanks in advance.

    # March 4, 2013 at 12:29 pm

    You could simply redirect the user after registration to a custom “Thank You” page and run the function there.

    There’s a decent write up of registration redirect [here](http://wpmu.org/redirect-wordpress-users-to-a-custom-thank-you-page-after-registration/ “WPMU Redirect”)

    # March 4, 2013 at 9:18 pm

    This wordpress plugin has “post-registration” redirect functionality that says “You can add your own code logic before and between any of the plugin’s normal redirect checks if needed.”
    http://wordpress.org/extend/plugins/peters-login-redirect/

    Your “code logic” could be your PHP call. I haven’t installed and tested this though–I’m just going based off the description.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".