function cwc_member_check_shortcode( $atts, $content = null ) {

if (current_user_can('author'))
return $content;
// return '';
}
}

add_shortcode( 'member', 'cwc_member_check_shortcode' );



///
if( current_user_can( 'administrator' ) ){} // only if administrator
if( current_user_can( 'editor' ) ){} // only if editor
if( current_user_can( 'author' ) ){} // only if author
if( current_user_can( 'contributor' ) ){} // only if contributor
if( current_user_can( 'subscriber' ) ){} // only if subscriber