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

#12660
shamim
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);