---
title: "rcp_successful_registration"
source: "https://docs.nexcess.com/software/kadence/restrict-content-pro/rcp_successful_registration/"
description: "Note: This is part of the developer docs and is considered custom code. Unfortunately, we cannot provide support for custom code at this time as we do not have…"
vertical: "Software"
area: "Restrict Content Pro"
date: "2023-04-20"
last_modified: "2023-04-20"
---

# rcp_successful_registration

Note: This is part of the developer docs and is considered custom code. Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code. If you need assistance with this, please reach out to our list of consultants for further assistance: https://codeable.io/developers/restrict-content-pro/ Runs after a user signs up for a membership level. This triggers during new signups, manual renewals, upgrades, and downgrades. It does not trigger for automatic renewals. Parameters: $member – RCP\_Member object. $customer – RCP\_Customer object. $membership – RCP\_Membership object. Example: /\*\* \* Send extra follow up email to new members who sign up for level ID #1, #2, or #3. \* \* @param RCP\_Member $member \* @param RCP\_Customer $customer \* @param RCP\_Membership $membership \* \* @return void \*/ function ag\_rcp\_after\_registration( $member, $customer, $membership ) { // Array of level IDs we want to execute code for. $membership\_levels\_to\_check = array( 1, 2, 3 ); // Change these ID numbers. // Bail if they don’t have one of these level IDs. if ( ! in\_array( $membership->get\_object\_id(), $membership\_levels\_to\_check ) ) { return; } // Send an extra follow up email. $subject = \_\_( ‘Requesting extra information’, ‘rcp’ ); $message = \_\_( ‘Include your email message here.’, ‘rcp’ ); $emails = new RCP\_Emails; $emails->member\_id = $member->ID; $emails->send( $member->user\_email, $subject, $message ); } add\_action( ‘rcp\_successful\_registration’, ‘ag\_rcp\_after\_registration’, 10, 3 );
