Home › Forums › Front End PM PRO › Email Notifications being sent to Pending Members
Tagged: announcements, email notifications, members, messages, pending
- This topic has 5 replies, 2 voices, and was last updated 7 years, 8 months ago by STEVE.
- AuthorPosts
- March 26, 2018 at 8:50 am #12654STEVEParticipant
So I’m in the testing phase before I launch my site. I have “Ultimate Members”, “Front End PM PRO”, and the
“Front End PM – Ultimate Member Integration” Plugins all installed. I have UM configured to not allow new member registrations to be automatically approved and instead require an Admin to approve or deny the membership. I noticed that new users pending review, even though they cannot log into the site, are able to receive email notifications from Front End PM PRO regarding both Announcements and Messages.I like this for Messages. It gives me an opportunity to look over a pending member’s profile and quickly send them an email via Front End PM PRO if I need to talk to them about their registration prior to approval.
However, I don’t like that pending members are able to receive email notifications about Announcements that are meant for actual members.
Is there a way we can prevent “Pending” members from receiving email notifications for Announcements, while still allowing them to receive Message notifications?
Thanks
March 26, 2018 at 11:42 am #12660Shamim HasanKeymasteradd following code in your theme’s ( child theme’s if any) functions.php
add_filter('fep_get_user_option', function( $value, $option, $default, $userid ){ global $ultimatemember; if( ! $userid ) $userid = get_current_user_id(); if( 'allow_ann' == $option && ! $ultimatemember->user->is_approved( $userid ) ){ $value = 0; } return $value; }, 10, 4);March 27, 2018 at 3:54 am #12692April 13, 2018 at 12:25 pm #13281STEVEParticipantHi @shamim,
Bad news, the code above is no longer working after Ultimate Member upgraded to version 2.0.4.
Any fix for this?
Thanks
April 13, 2018 at 9:48 pm #13316Shamim HasanKeymasterTry following code
add_filter('fep_get_user_option', function( $value, $option, $default, $userid ){ global $ultimatemember; if( ! $userid ) $userid = get_current_user_id(); if( 'allow_ann' == $option && ! $ultimatemember->user()->is_approved( $userid ) ){ $value = 0; } return $value; }, 10, 4);April 14, 2018 at 12:40 pm #13327STEVEParticipantThat worked. Thanks!
- AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.