The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

WordPress – Do something immediately after new user registration..

  • # March 4, 2013 at 5:54 am


    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

    This reply has been reported for inappropriate content.

    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

    # 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.”

    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed