You might be looking for a logged in conditional. From the WP Codex, you might be able to try in your theme (untested):
<?php
if ( is_user_logged_in() ) {
get_currentuserinfo();
echo 'Logged in as ' . $current_user->user_firstname;
}
?>
EDIT
After consulting the WP Codex on the topic, I was able to display my user’s identity using the following:
if ( is_user_logged_in() ) {
global $user_identity;
get_currentuserinfo();
echo 'Logged in as ' . $user_identity;
}
Related Posts:
- Remove the deleted users avatar from list
- Unable to login using username
- Condition OR for current user ID
- Secondary Menu and Logged In Users
- Show errormessages on wrong username/password on custom loginform?
- How to replace ACTION url from original wordpress login form?
- How to request login for user but not for bots
- How to check if a user exists by a given id
- Is it possible to remove the “standard” post format?
- How to remove row-actions from pages table?
- How to display random users with avatars
- Masking logout URL
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- redirect wp-login.php to another page
- Removing Unnecessary Text from Admin Menu without CSS
- Display WordPress Search
- How do I redirect upon login a specific user based on role?
- How to add a rel attribute to images that contains their categories?
- Associate Page with User
- Preferred Use of home_url()?
- How to update BuddyPress xprofile fields programmatically? [closed]
- Custom function for user register in wp?
- Can I pass two roles to the function get_users?
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Create dropdown of users in admin dashboard
- password protected post policy
- Refactor create_function
- adding custom classes for tables
- Last time a user logged in
- is_user_logged_in not working to redirect only logged out users
- Customizer field value into functions.php variable
- wp_dropdown_categories and custom attribute
- How to add custom fields to my custom registration form
- create shortcode to list users with specific meta key value
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Include default functions and methods
- Hard-coding custom menu elements for menu manager
- Twentyten Child Theme: header images display messed up in admin panel
- How to make custom column Admin>Users sortable?
- How can I modify all existing tags while keeping the urls themselves?
- Execute a ultimate member action when user role is updated
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- When sale price is 0.00 show only regular price
- When a user logs in, how can they view the website instead of the admin menu?
- Move Custom Fields on General Settings Page to New Location
- How to retrieve the current post’s generated featured image size?
- If user is logged-in display/hide something
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Wp-query Order By problem
- How to Use Global Variables Inside Header and Footer
- Create custom function for hero image
- Randomizing wp_tag_cloud() in child theme
- How to append classname to body tag if guest user
- Where do I go to edit this area? [closed]
- Prevent WordPress Automatic Logout
- error at login page in wordpress
- Replace plugin function with a custom function?
- How to add array [closed]
- Delete a user from frontend
- Add Link to Users List (Backend) to open each users front-end profile
- Problem with images URL after filter applying
- Suggest Users basing on User taxonomy
- Showing user profile data on front-end
- Function to replace comment’s accented characters before posting
- Modify function to only return values for the user that’s logged in
- Get users with different roles and call function on each of them (user_meta)
- Add Login and logout buttons to top menu bar
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- WordPress login set cookie that survive browser exit (wp_signon function)
- Prevent wp_signon redirect on failed login for ajax login
- How to redirect Subscribers on login to specific page, when logging in from a Page
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Deleting guests profile users after 1.5 hours
- Modifying a WordPress Plugin
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- CF7 select value get to function and reciept value from function
- Allow logged in user to view a Page, else send to login screen and then redirect back to Page
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Woocommerce custom calculation function
- is_user_logged_in() not working in homepage
- Remove all video attachment, both files and post/postmeta from database?
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Replace image attributes for lazyload plugin on image elements with specific class
- How to make an If Else on Excerpt Filter
- Login functions
- functions.php / replacing div’s with new ones?
- Post variables not displaying correctly in custom function
- “Headers already sent” while trying to add a CSS file to my login page?
- WordPress Custom wp mail template return full template
- post_row_actions filter from parent theme not executing in child theme