Home › Forums › Front End PM PRO › Email Notifications being sent to Pending Members › Reply To: Email Notifications being sent to Pending Members
March 26, 2018 at 11:42 am
#12660
Shamim Hasan
Keymaster
add 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);