This is done filtering the *_row_actions
.
For the Comments screen (/wp-admin/edit-comments.php
) this is the hook:
add_filter( 'comment_row_actions', 'comments_row_wpse_92313', 15, 2 );
function comments_row_wpse_92313( $actions, $comment )
{
if( !current_user_can( 'delete_plugins' ) )
unset( $actions['quickedit'], $actions['edit'], $actions['spam'] );
return $actions;
}
I cannot see a History
option, maybe it’s included by some plugin (?). It’s a matter of adding it to the unset
list.
These are the default actions in the core files:
$actions = array(
'approve' => '',
'unapprove' => '',
'reply' => '',
'quickedit' => '',
'edit' => '',
'spam' => '',
'unspam' => '',
'trash' => '',
'untrash' => '',
'delete' => ''
);
Related Posts:
- Why do I get comment spam even with Akismet and Captcha?
- Removing the “Website” Field from Comments and Replies?
- How to deal with small scale comment spam on small commercial sites? [closed]
- What’s the easiest way to close comments on media/attachments?
- How to remove comment spam in WordPress
- How is comment spam received without a comments form?
- Allow anonymous comments, but prevent spam [closed]
- Is there any advantage to emptying comment spam?
- Why do I get email notifications about comments that WordPress has already determined are spam?
- Number of External Links in Comments – Moderation Option
- Display comment meta data after quick update
- Strategies for coping with hyperagressive spambots?
- Let user edit his own comment
- How can I automatically delete comments that contain chinese / russian signs?
- Comments view limited to 20 results – any way to increase to 50 or 100?
- Report spam button
- Restore trashed posts with comments
- Bots posting comments on pages
- Deleting the attached “comment replies” when trashing a comment
- How to make all the posts commentable by default? Imputs in Settings/Discussions are not saved
- How to make a secure blog that is completely private?
- Auto delete comment if Contains
- All users/comments suspected as bot? [closed]
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- How to block comments and pings?
- Batch approve comments
- reCaptcha doesnt appear in comment (manual or plugin)
- Make every comment go to the spam folder
- Anonymous spam comments when only registered users can comment
- What’s the difference with trash_comment and wp_trash_comment?
- Prevent users to delete comments from trash
- Comment moderation
- wp_trash_post retrashes already trashed comments?
- transition_comment_status gets called when untrashing comments
- Conditionally process comments while ignoring replies
- Auto-deleting comments that trigger the blacklist
- approve,spam,trash etc. options are not coming on comments in admin panel
- comments are going to spam
- How to hide and disable URL and email fields from comments?
- Add ACF Quick Edit Columns on Comments
- How to remove website url field from comment form completely?
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- 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?
- how to reduce the number of spam comments
- Is it possible to pull comments from facebook into your blog?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Non-threaded comment replies with link to original comment
- Approve comment hook?
- 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?
- 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 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?
- Experiences with adding Nonces to the comment form
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Add option to disable comments on a per posts basis?
- 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()
- 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 add internal, revision comments to page updates
- 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
- 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
- Get comments for more than one post
- How can I add comments to a page?
- 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