// show user avatar if logged in function colaborator_avatar($atts) { if (is_user_logged_in() && !is_feed()) { return '
'; } } add_shortcode('colaborator_avatar', 'colaborator_avatar'); // show username if logged in function show_loggedin_function( $atts ) { global $current_user, $user_login; get_currentuserinfo(); add_filter('widget_text', 'do_shortcode'); if ($user_login) return '