If you have the username then you should be able to get the user using the get_user_by function, which will return the user object
https://developer.wordpress.org/reference/functions/get_user_by/
$user = get_user_by(field, value);
Related Posts:
- edit_comment_link is not showing for comment author
- Comment_author_url doing nothing
- Show all people who commented on all posts by an author
- how to get page id of a page using page slug
- Display user’s total comment count outside The Loop
- Facebook Comment Count
- the_author_posts_link css class
- Getting the comment number relative to all the post’s comments
- How do I get the author’s page url from their ID?
- How to output a permanently delete comment link?
- Current post’s author name in the author meta tag
- count number of user comments with a specific comment meta value
- Change comments form title on a page by page basis
- Allow authors to post only in categories they create in WordPress
- Can we have a php “page” without a WordPress “page”?
- How do I make wordpress comment fields required?
- How do I create comment-reply-button using element not
- Missing Author Information
- How to check if comments are paginated?
- Notify WordPress Site I Have Linked To Them
- Put a link to a category round a hard coded A HREF
- Add “last” and “first” to WordPress Comment Pagination Links
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Replace comment avatars and links at the same time
- Automatically generate Post/Page from searched Database item?
- Get ID of child from child slug, while knowing parent ID
- Get_the_author doesn’t return author name
- the_author() not working outside the loop
- Adding ads code between comments
- Get total number of comment of the posts written by an author
- Get posts with at least one category in common with current post?
- How do I fetch all comments per post via WP REST API?
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- How Can I Call Up The Author’s Name on a Post
- Rename “Portfolio” slug?
- comments_number display outside specified span
- How do I attach a php file to an arbitrary slug and still have access to the wp-core functions?
- Trying to implement Ajax comments in WordPress, getting WP error
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- How to query for pages/post depending on slug?
- Show comments menu in dashboard only if the site has comment
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Retrieving Author ID in wp-admin area
- WordPress custom slug (endpoint) and compare all links
- Limit 1 global comment per minute
- Create Page To Count Comments For Each Post In WordPress Site
- comments sorting incorrectly across multiple pages
- Commenting out unwated CSS/scripts in HTML with PHP
- wp-comments-post.php file returns a blank page
- php function to display commenter username or login
- Genesis framework comments broken?
- check if comment submitted was successful
- Remove author link wherever author’s name is display
- Alter required message using comment form api
- Get post id within comments loop
- List taxonomy term slugs within shortcode (do_shortcode)
- WordPress comment submit button substitutes/options
- How to list commenters and days since last commented
- How to add text to the start of all comments?
- Does anyone know all parameters of get_comments()
- Appended comments but they show up above the content instead of below
- get comment data using comment id
- Removing the comment function within wordpress
- wp_delete_comment takes two tries to delete – then deletes all comments
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- page-slug.php not working but only for specific slug
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Noindex Posts From Certain Authors In WordPress
- Remove slugs from custom posts type
- Fetching Initials of the Commentator in the WordPress Website
- get_comments_number() returns 0
- Noindex subscriber author page
- How can I include the user id inside of a shortcode php output?
- How to hide the author box of a specific user?
- Restrict characters in comment section
- Getting the slug into a variable, how to echo that variable
- Conditionally load class in the comment section of the post page
- How to get comment_ID by post_ID in wordpress
- Fatal error: Cannot redeclare comment_theme()
- I don’t have comments.php… how do I customize my comment fields
- Create condition for Author bio Social Links
- How to change the author box selection on a post to a custom taxonomy
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- Remove Author Links
- WordPress redirect to a subpage – how to create a template for subpage?
- Add custom field on admin dashboard comments / reviews
- Get nice name of category from slug (remove dashes of category)
- Custom PHP form needs refresh to load page correctly
- How to pass parameters in wordpress shortcode?
- Display the list of user’s comments + the post title + date
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- Slug duplicates once clicking on link
- Show sidebar only to author of post
- Posts missing on author page
- Rewrite rule not working, but only when parameter is text
- Comments on my custom post type
- Fetch commens from a specific post
- Hide a specific category title from displaying on site