Reply To: Email Notifications being sent to Pending Members


Home Forums Front End PM PRO Email Notifications being sent to Pending Members Reply To: Email Notifications being sent to Pending Members

#13316
shamim
Keymaster

Try 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);