---
title: "Email Filters"
source: "https://docs.nexcess.com/software/kadence/restrict-content-pro/email-filters/"
description: "Coming soon: Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experien…"
vertical: "Software"
area: "Restrict Content Pro"
date: "2023-04-20"
last_modified: "2026-08-12"
---

# Email Filters

**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 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/ All email messages and subjects have their own filters. You can use these to change the message contents for each membership level or based on any other user/membership details. This is also useful if you want to send emails in multiple languages. Here’s a full list: Paid Membership Activation Email: $message = apply\_filters( ‘rcp\_subscription\_active\_email’, $message, $user\_id, $status, $membership ); $subject = apply\_filters( ‘rcp\_subscription\_active\_subject’, $subject, $user\_id, $status, $membership ); Free Membership Activation Email: $message = apply\_filters( ‘rcp\_subscription\_free\_email’, $message, $user\_id, $status, $membership ); $subject = apply\_filters( ‘rcp\_subscription\_free\_subject’, $subject, $user\_id, $status, $membership ); Trial Membership Activation Email: $message = apply\_filters( ‘rcp\_subscription\_trial\_email’, $message, $user\_id, $status, $membership ); $subject = apply\_filters( ‘rcp\_subscription\_trial\_subject’, $subject, $user\_id, $status, $membership ); Canceled Membership Email: $message = apply\_filters( ‘rcp\_subscription\_cancelled\_email’, $message, $user\_id, $status, $membership ); $subject = apply\_filters( ‘rcp\_subscription\_cancelled\_subject’, $subject, $user\_id, $status, $membership ); Expired Membership Email: $message = apply\_filters( ‘rcp\_subscription\_expired\_email’, $message, $user\_id, $status, $membership ); $subject = apply\_filters( ‘rcp\_subscription\_expired\_subject’, $subject, $user\_id, $status, $membership ); Payment Received Email: $message = apply\_filters( ‘rcp\_payment\_received\_email’, $message, $payment\_id, $payment ); In this email, the user ID can be obtained with $payment\[‘user\_id’\] Renewal Payment Failure Email: $message = apply\_filters( ‘rcp\_subscription\_renewal\_payment\_failed\_email’, $message, $user\_id, $status ); $subject = apply\_filters( ‘rcp\_subscription\_renewal\_payment\_failed\_subject’, $subject, $user\_id, $status ); Manual Payment (Admin Notification) $admin\_message = apply\_filters( ‘rcp\_before\_admin\_email\_manual\_payment\_thanks’, $admin\_message, $member->ID ); Example Usage This example changes the contents of the “Active Membership Email” if the user is on membership level #3. function ag\_new\_subscription\_active\_email( $message, $user\_id, $status, $membership ) { $level\_id = $membership->get\_object\_id(); // Change the email contents if they’re on level #3. if( 3 == $level\_id ) { $message = \_\_( ‘Your new message can go in here.’, ‘rcp’ ); } return $message; } add\_filter( ‘rcp\_subscription\_active\_email’, ‘ag\_new\_subscription\_active\_email’, 10, 4 ); This example changes the contents of the Manual Payment admin notification email: function ag\_rcp\_admin\_email\_manual\_payment( $message, $user\_id ) { $member = new RCP\_Member( $user\_id ); $membership\_level = $member->get\_pending\_subscription\_name(); // Customize this however you like. $new\_message = \_\_( ‘Hello’, ‘rcp’ ) . “nn” . $member->display\_name . ‘ (‘ . $member->user\_login . ‘) ‘ . \_\_( ‘just submitted a manual payment on’, ‘rcp’ ) . ‘ ‘ . $site\_name . “.nn” . \_\_( ‘Membership level’, ‘rcp’ ) . ‘: ‘ . $membership\_level . “nn”; return $new\_message; } add\_filter( ‘rcp\_before\_admin\_email\_manual\_payment\_thanks’, ‘ag\_rcp\_admin\_email\_manual\_payment’, 10, 2 );
