• Resolved rpb1001

    (@rpb1001)


    Hello –

    I want to have users interested in receiving our document to first register, then be approved, and then after we can send them the link to download the file.

    How can I select from the registered users so i can send them a file?

    “Email with download link, which is sending to user”

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    You can send link only manually from the Secure downloads > Secure links menu page in WordPress admin panel. At that page you need to insert the email (where you need to send the link). There is no functionality of auto populating or auto selections of emails from the registered users. Sorry.
    Kind Regards.

    Thread Starter rpb1001

    (@rpb1001)

    OK, thank you. Would be a nice and helpful option!

    
    
    $args = array(
        'role'    => 'Your desired role goes here.',
        'orderby' => 'user_nicename',
        'order'   => 'ASC'
    );
    $users = get_users( $args );
    
    echo '<ul>';
    foreach ( $users as $user ) {
        echo '<li>' . esc_html( $user->display_name ) . '[' . esc_html( $user->user_email ) . ']</li>';
    }
    echo '</ul>';
    
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to select a single user to send to?’ is closed to new replies.