Restrict Content Pro
rcp_add_member_note()
Coming soon: Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experience.
Note: This content is provided as a resource within our developer documentation. Because custom code requires highly specific implementation, we encourage you to work with a qualified developer if you need guidance. You can find our recommended consultants here: https://codeable.io/developers/restrict-content-pro
Appends an admin note to the user’s RCP customer record (visible in the member/customer admin screen).
Deprecated in 3.0. Prefer rcp_add_customer_note( $customer_id, $note ) when you have a customer ID.
Does nothing if the user has no customer record yet.
Parameters
$user_id (int) – WordPress user ID. Default: 0.
$note (string) – Note text. Default: empty string.
Return values
(void)
Examples
rcp_add_member_note( $user_id, 'Manual comp extension through end of year.' );
$customer = rcp_get_customer_by_user_id( $user_id );
if ( $customer ) {
rcp_add_customer_note( $customer->get_id(), 'Verified identity via support ticket.' );
}
Related: RCP_Customer (add_note() on the customer object).