I hope you need to disable “Edit” and “Quick Edit” for non-admin roles. So you can modify your code as follows
function remove_quick_edit( $actions ) {
unset($actions['edit']);
unset($actions['inline hide-if-no-js']);
return $actions;
}
if ( ! current_user_can('manage_options') ) {
add_filter('post_row_actions','remove_quick_edit',10,1);
}
Related Posts:
- Post/Page Publish/Update button not clickable once I make an edit
- How to add editor’s name to entry meta byline?
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Adding a Nav menu to post admin
- How to after saving or publishing a post redirect back to the original page
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Add the description field on the attached media
- Classic editor throws 403 error based on post content
- How to allow users to post only in certain category and hide elements from edit page?
- Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
- How can I add a box to edit Order on a regular post?
- Do one have to wait after pressing “update” on a post edit page?
- Need help creating a page that has editable fields
- How to add text before post_excerpt in Gutenberg
- Select another post in a post meta like a parent page is selected while editing a page
- link to edit a post has empty target
- Taxonomy checkboxes not showing current status on edit page
- Modify loop to include all post statuses not just ‘published’
- Can’t create posts with WP DB Abstraction Plugin
- When I click edit on a post, all the content disappear. Does anyone know how to fix this?
- Text editor has problem with having ” in a post
- How to Change Order of Posts in Admin?
- How to Display Network Post Count?
- How to disable content pagination?
- How to add/assign or change featured image in post programmatically?
- WP-CLI Bulk delete posts from specific category
- Update all posts automatically when using post_meta
- Exclude ALL posts from sub categories
- Post ids are incrementing by an unknown number?
- Can’t show comments count per post outside loop
- Redirect based on user post count
- Should our pages be posts?
- Allow role to delete posts but block him the wp-admin
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- Link post permalinks to subdirectory /post
- How do I add a custom body class to the admin area of a page?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Show total author’s post views by posts post_meta
- Get the most repeated post contents from a search?
- pre_get_posts query between 2 dates (date stored in custom post meta)
- Why is my Blog Page ID == First Post ID?
- How to build a site with a map that shows where people offer and need help?
- Get the number of posts shown in the current page
- Get all attachment by post excluding featured and content inside
- Custom loop pagination links not working
- Post categories to pages
- Any way for get_next_post() to use the actual post order instead of publish order?
- If in_category not working for multiple single.php pages
- How to display excerpt post on hamepage and archive pages?
- display random posts on index.php instead of latest
- Automatically Import WordPress Blog to Facebook Page [closed]
- Only show a Post once in 10 visits
- Send a review notification email to admin when a post is 12 months old
- Sticky Post from page 2 and on
- Edit custom fields in posts list
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Restore woocommerce orders
- Split post title for styling
- Post/page title to permalink transformation – what is behind the scenes?
- query for filtering published posts?
- All images on one line for each post
- How to show full post on home page
- Pull in posts using post meta for REST API
- Show Last Revision Of Post That Has A Published Status On Single Page
- how to show comments only author which send own posts in wordpress
- Avoiding duplcate posts on the main page
- Please help a newbie with blog page issue?
- Alt text attributes not showing over portfolio images
- How to work with posts and sub posts?
- How to sort WP_Post Object array by object field in php?
- WordPress Recent Post with the badge “New” on the side of the title post
- Unable to delete attached file from folder programmatically
- How to create page with post content in it?
- Top tags with minimum number of posts
- Set a post expiration and delete a post when expirate
- getting custom post by tag
- On WordPress Search, how to search post from Author meta also
- Single Sidebar; multiple templates! How?
- is there a way to get the ‘read more’ tag in a manual excerpt
- Next / Previous post in a single category
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- How can I view my posts in ascending order by number of views
- Override wp_link_pages pagebreak with filter
- Retrieve posts inside foundation tabs and tab-content split by 3 per row
- How to sort posts in admin by name
- Extracting a TLD from the content and assign to custom field
- Blog only showing one post even though more published
- Show only top 3 posts from 3 categories in order on home page
- Help with a function that will place a map pin for all posts
- how to create a new page that is not in the hierarchy?
- How to custom sort-out editing-panel fields?
- Modifying the permalink href for posts with jquery
- Related post by category throws internal server error
- How to find the page of specific post?
- Display posts in row Horizontally [closed]
- How to var dump urls for all posts
- How can I fixe the article title problem?
- Automatically select category based on user role
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage