Cancel a member's payment profile. This will end their recurring subscription with the payment gateway.


  • $user_id - ID of the member to cancel.
  • $set_status (bool) (optional) - Whether or not to update the member's account status to 'cancelled'. Default is true.

Return values:

  • true if the profile was successfully cancelled.
  • false if the profile wasn't cancelled, due to an error with the gateway or because the user isn't able to cancel their profile (see rcp_can_member_cancel()).