weball-in
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Hi all,
For the ones who are still searching for an explanation to make sure users only send an email to the admin and not to each other but give the admin the ability to send an email to which ever user he or she wants, put the following code on line 185 of the file inc/send-page.php
elseif (current_user_can('manage_options')) { // classic way: select recipient from dropdown list?> <?php // Get all users of blog $args = array( 'order' => 'ASC', 'orderby' => 'display_name' ); $values = get_users( $args ); $values = apply_filters( 'rwpm_recipients', $values ); ?> <select name="recipient[]" multiple="multiple" size="5"> <?php foreach ( $values as $value ) { $selected = ( $value->display_name == $recipient ) ? ' selected="selected"' : ''; echo "<option value='$value->display_name'$selected>$value->display_name</option>"; } ?> </select> <?php } else {?> <select name="recipient[]" size="1"> <?php echo "<option value='admin'>Admin</option>"; ?> </select> <?php } ?>
Viewing 1 replies (of 1 total)