Hello all,
I was not aware of this post. The forum didn’t send me any email.
Anyway, your request has just been added to the plugin and now it supports multiple users!
Multiple users are added via a comma separated list of login names:
recipient="user1,user2, user3"
You can safely use a space after the comma.
@brunolopes446
I used this code in order to add this functionality:
case 'none' :
$all_recipients = array_map( 'trim', explode( ',', $recipient ) );
$current_user = wp_get_current_user();
if ( in_array( $current_user->user_login, $all_recipients ) ) {
$text = $container_open . ' class="private user-content user-only ' . esc_attr( $current_user->user_login ) . '-only"' . $align_style . '>' . $content . $container_close;
} else {
$text = '';
if ( $alt ) {
$text = $container_open . ' class="private alt-text"' . $align_style . '>' . $alt . $container_close;
}
}
break;
Enjoy the new version! ??