Membership 2 Pro - Multiple admin notifications.

How do I set the email which receives admin notifications from the plugin? For example, we have automated emails setup and have the boxed ticked to send to admin email as well. In that dropdown, we have two options and the second option is two email addresses as there are two email accounts that need to be notified. How can I set that? Please check and help.

  • Ash
    • WordPress Hacker

    Hello Simon

    You can use the following code:

    add_filter( 'ms_model_communication_send_message_recipients', function( $emails ) {
    	$emails[] = 'More email addresses';
    	return $emails;
    } );

    Set your email instead of "More email addresses".

    You can use this code in your child theme's functions.php if the theme is not changed. Otherwise mu-plugin is the best option. To create a mu-plugin, go to wp-content/mu-plugins folder. If there is no mu-plugins folder then, create one. Now, inside the mu-plugins folder create file with name anything.php (make sure file extension is .php). Now start with a <?php tag and then put the above code.

    Let us know if that works for you. Have a nice day!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.