Why not use:
if ( user_can( $comment->user_id, 'administrator' ) ) {
// current comment is from an administrator;
// do something
}
As for putting the admin comments at the top of the comment list, you would have to modify the comment query itself.
Related Posts:
- How to add internal, revision comments to page updates
- What’s the easiest way to close comments on media/attachments?
- How to show Disqus comment count number only without text?
- Send Notifications to All Admins
- Report spam button
- Can’t seem to get this CSS to work…any ideas why? [closed]
- Filter In Reply comments from WordPress Admin Panel
- warnCommentChanges always being triggered on update
- css hide all the comment reply links except the lowest nested comments
- Which filter/hook to use for styling comments?
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- Applying same style to all the comments on the page
- comments_popup_link() – how to load different classes/images according to different comment condition?
- Admin Dashboard – Recent Comments source
- Highlight comments made by registered users of the site
- JetPack comment threads are displaying above comment box? [closed]
- Prevent users to delete comments from trash
- How do I add custom field to Admin comment form and display
- Comments counter only for Authors Posts
- where can I find the missing comments in my wordpress dashboard?
- How to enable reply button on mostly deeply-nested comments? [closed]
- How to ‘If Author’ Comments Check
- Identify and display the fact that user is admin next to username in comment section
- edit-comments.php in Admin – how to change ‘Comments’ title?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Is it bad practice to comment out single lines of CSS with //?
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- What are the standard admin CSS id/class tags?
- Why do I get comment spam even with Akismet and Captcha?
- What tools are available for managing/writing to WordPress? [closed]
- How to rearrange fields in comment_form()
- setting comments off as default for pages and custom post types?
- Is it possible to pull comments from facebook into your blog?
- Disable SSL / HTTPS for wordpress
- Find out which moderator approved comment?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Non-threaded comment replies with link to original comment
- WordPress admin stylesheet
- Approve comment hook?
- This CSS Stuffing Works, But Is This A Good Practice?
- Commenting in user profile page?
- How to change “You must be logged in to post a comment.”
- comment_post_ID 0 (cannot remove from dashboard)
- Disable comments on all posts/pages
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- How to wrap submit button of comment form with div
- How do I load a CSS style into WordPress admin area only?
- How can I target WordPress 3.8 new interface MP6 with CSS?
- How to enable comments for pending and draft posts?
- Using WordPress’ WYSIWYG for comments
- Enable Submit Comment Without Page Reload (Using Ajax)?
- What for is the table “wp_commentmeta” exactly?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Add option to disable comments on a per posts basis?
- Load plugin scripts and styles only on plugin page
- Resetting comment count
- When importing – failed to import: Invalid post type feedback
- How to change the email notification recipient (user) for new comments?
- Redirect user to a custom url after submitting the comment
- Paginate result set from $wpdb->get_results()
- Style reply form different than comment form
- Change Comment Author Display Name
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Custom comment type based on thread level
- How to load and show comments with AJAX instead of pagination?
- Linking to Page Showing Only Comments Without Parent Post
- Comment Reply javascript
- How do we remove the H3 tag for the reply-title I.D
- Comments not appearing at all
- comments reply script not working
- How to display comment form error messages in the same page
- 3 moderators to approve comment
- How to deal with small scale comment spam on small commercial sites? [closed]
- What should I do to make generated avatars different for anonymous comments?
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Check If comment author is registered
- Comments screen in backend, how to disable email address of commenter for non admins
- Add comments from the admin panel?
- How can I limit the number of comments per registered user per day?
- One comment per user per post but be able to reply to existing comments
- How to use a custom comments template
- Comment visibility
- Reverse comment pagination numbers
- How to make a theme with more than one CSS file?
- Get comments for more than one post
- How can I add comments to a page?
- How to remove comment spam in WordPress
- Post Comments using WP REST API v2 in WordPress
- show number of open comments on custom dashboard
- Show content only if member left a comment
- Add placeholder attribute to comment form fields
- Why do I get accidental comments without (the required) email address?
- How is comment spam received without a comments form?
- Does a reply to a wordpress comment notify the author of the comment?
- What are the current recommended best-practices for comments.php?