MemberPress: Add Email Recipients to Specific Emails
add_filter( ‘mepr-wp-mail-recipients’, function( $recipients, $subject, $message, $headers ) { // Check if the email subject contains “payment of” if( strpos( strtolower( $subject ), ‘payment of’ ) !== false ) { // Add email recipients $recipients[] = ‘[email protected]’; $recipients[] = ‘[email protected]’;…Continue reading