• Resolved doc1355

    (@doc1355)


    Hi,
    I need to automatically create a specific post type (custom post) with taxonomy when a user registers using the Ultimate Member Registration form.
    Is there is a php function script that I can fire when a user registers to do this so that I don’t have to do it manually?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @doc1355

    You can use the following code snippet to trigger the creation of custom post types:

    add_action( 'um_registration_complete', 'um_071221_change_registration_role' ,1 );
    function um_071221_change_registration_role( $user_id ){
        // do something with the $user_id
    }

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @doc1355

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved…

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

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

The topic ‘PHP Function to create a post on registration’ is closed to new replies.