Reply To: Turn off email notifications


Home Forums Front End PM PRO Turn off email notifications Reply To: Turn off email notifications

#42052
shamim
Keymaster

Yes, possible. In that case fill out subject in settings and add following code in functions.php

add_filter('fep_get_user_option', function( $value, $option, $default, $userid, $is_default ){
    if( 'allow_emails' !== $option ){
        return $value;
    }
    if( fep_is_user_admin() ){
        $value = true;
    } else {
        $value = false;
    }
    return $value;
}, 10, 5);

This will send notification only to admins.