As usual with hooks this is issue of timing.
- your init function is hooked to admin load process, which works fine for most things;
- however in this specific case function is added to filter in constructor of
WP_Comments_List_Table
class, and object is created inedit-comments.php
after admin loader had been processed.
In my plugin for similar stuff I am removing it at manage_edit-comments_columns
hook.
Simplified example from my class:
static function on_load() {
add_action( 'admin_init', array( __CLASS__, 'admin_init' ) );
}
static function admin_init() {
add_filter( 'manage_edit-comments_columns', array( __CLASS__, 'manage_columns' ) );
}
static function manage_columns( $columns ) {
remove_filter( 'comment_author', 'floated_admin_avatar' );
// stuff
return $columns;
}
Related Posts:
- What should I do to make generated avatars different for anonymous comments?
- Add placeholder attribute to comment form fields
- Hook to edit an column on comments screen?
- Using filter to add additional fields to comment_form()
- How to remove commenters ability to add hyperlinks to comments?
- How to remove or replace the log-in link for comment replies?
- Wrong gravatar showing up?
- Cannot get local avatars to show [closed]
- Filter custom posts with / without comments
- How to change avatar of the comment author using comment ID?
- woocommerce allow users to select or use avatar
- Filter In Reply comments from WordPress Admin Panel
- Alternative to the filter comment_reply_link
- How to use the ‘comments_number’ filter?
- Best way to tell if a comment is from a user?
- How to use filter on comment submission/insert
- Upload avatar for post comment
- WordPress Custom Local Avatar not showing in comments
- WordPress shows admin’s avatar after editing a comment
- modifying the comment form
- What filter or action to replace comments or add new comment system
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments
- How to rearrange fields in comment_form()
- Commenting in user profile page?
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- How to load and show comments with AJAX instead of pagination?
- Comments not appearing at all
- get recent comments of a particular category
- Hook/Filter before and after comments
- Comment form validation
- Is it possible to move a comment that should be a reply to another comment?
- Can I seperate comments from post?
- I have tried using Plugins to remove 72K comments with no success
- Display commenter’s registration date on comments?
- How do I display the commentor’s first name and last name in the comments?
- show un-approved comments at wordpress front end
- Send Notifications to All Admins
- Disable comments
- Community Moderation Plugin for Comments [closed]
- Allow contributors to moderate comments comments on posts they write
- Bots posting comments on pages
- default callback function in wp_list_comments
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- Why is comments_template() working without a comments.php file?
- Comments deactivated
- Turning off trackbacks & comments
- Display comments on homepage of twenty seventeen theme
- How to dynamic Heart Like in WordPress?
- Comment Moderation and CDN Caching
- Delete all one-word comments
- Assign author to comment from post edit page
- The “\” is missing when comments is updated
- Using defer or async JavaScript attributes prevents pingbacks and trackbacks from being sent
- Why do I have to manually approve comments from one of my users who already has an approved comment?
- Posting comment returns 404
- How-To and Troubleshooting Canonical Links for Paginated Comments
- How to hide trackbacks on wp-admin/edit-comments.php
- Get comments only for certain specific users in template file
- Using a static callback on wp_insert_comment
- How to direct user after comment save
- Show comment pop up links as text only
- Displaying comments on pages distinguished by GET IDs
- Is there a hook to update / replace values in the “Enable threaded (nested) comments x levels deep” drop down?
- Update comment meta for all comments of specific post
- How to permanently delete pages I have already trashed?
- How to change comment texts that has a specific comment_ID – Hook into comment
- counting trackbacks, pingbacks and comments of a post
- Adding comments section to website integrated WordPress instance
- How to Define Custom Number of Items in Comment Feed
- Modify links in user comments
- How indicate when a functions was upgraded in relationship to the entire program [closed]
- Empty comments field or
- infinite loop on page with comments after changing comments.php and header.php
- What templates/funtions needed in custom theme to allow comments the new 3.0 way
- Default Gravatar not showing for pings
- How include comment and post count of user in this custom query
- Prevent users to delete comments from trash
- How can I hide comment of the authors from their published posts?
- How to customize ‘children comments’ in WordPress?
- Top rated posts Average rating issue
- Disallow Comments
- Keep comment author’s name on their comment even when their account is deleted
-   not working in comments
- WordPress Commenting System User access and Security
- Comments.php is not getting called on main blog page
- Allowing comments on author pages
- Comment section not appearing on posts
- How can I see whether a commenter has subscribed to be notified of replies / other comments to a post
- Where is the Leave a Comment link set
- Disable comment moderation in multisite
- URLs to user page is broken
- Auto disable comments with custom field
- I want to fill the comment with the comment count?
- delete user not working
- How to remove or customize “Comment” in comments form?
- Getting thousands of spam comments
- Comments on pages not appearing, even though I enabled them
- check if a comment was made by a registered user
- Add ACF Quick Edit Columns on Comments