Use current_user_can
to wrap the add_filter
call:
if ( current_user_can('manage_options') ) {
} else {
add_filter('post_row_actions','remove_quick_edit',10,1);
}
manage_options
is an Admin capability. If the current user can do it, he’s an admin (on a vanilla WP installation).
See:
http://codex.wordpress.org/Roles_and_Capabilities
and
http://codex.wordpress.org/Function_Reference/current_user_can
Related Posts:
- Fields don’t reflect previous Quick Edit changes when clicking Quick Edit a second time
- Get post meta inline edit WordPress
- Change quick edit terms list to radio buttons
- admin quick edit existing column in posts
- How to remove the author field from bulk/quick edit form?
- Show Custom Fields in Quick Edit
- Add ‘Description’ to taxonomy ‘Quick Edit’
- Remove specific items from Quick Edit menu of a Custom Post Type?
- Quick edit screen customization
- How to get current post ID in quick edit callback
- Add quick edit fields without custom colum
- How to add a “publish” link to the quick actions
- Remove quick edit for custom post type
- How to verify nonce from Bulk/Quick Edit in save_post?
- Why isn’t my code to save custom fields in quick edit working?
- Is there a way to prevent author change when editor/administrator edits a post?
- Action ‘save_post’ not working for quick edit
- Retrieving values of custom fields in Quick Edit mode
- post_row_actions filter is not working while update post using quick edit
- How to get and edit custom fields if in Quick Edit
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How to hook into the quick edit action?
- Remove Posts Quick Edit link for specific user role? WP 3.3
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- How can I extend Quick Edit option with 2 more fields
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- How to remove a parent theme template from Quick Edit?
- Display comment meta data after quick update
- Why does this Quick Edit checkbox save the value only when unchecked?
- How to add a custom field to quick edit
- Undefined variable post_id in custom quick edit coloumn
- Let user edit his own comment
- How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?
- How to make all the posts commentable by default? Imputs in Settings/Discussions are not saved
- Changing comments avatar
- How to unset fields in woocommerce product quick edit?
- How to get post bulk edit action trigger and get edited post ids?
- Adminbar Missing “Edit Page”
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- pass error to admin_notices on “quick edit”/save_post action
- Is there a way to enable bulk edit and quick edit on custom post types?
- How to use TinyMCE in the quick edit form?
- Rows with custom columns not well formatted after Quick Edit save
- Use jQuery to conditionally hide elements in Quick Edit
- Custom title set on quick edit
- Anchor removed from DIV after Quick Edit is used
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- WP_Terms_List_Table Quick Edit not working
- Problems with taxonomy quick edit box
- Add “Excerpt” in “Quick edit”
- disable quickedit for specific custom post type user role
- where does this $post_id come from?
- How to add UI buttons in customizer like twentyseventeen
- Edit custom fields in posts list
- Trying to create an edit page link?
- How to add custom status to quick edit
- Improving Co-Authors Plus Plugin [closed]
- Why do my quick edits for custom taxonomies not show on the post frontend?
- How to validate custom fields in Quick edit/bulk edit?
- Editable select options in quick edit OR in plugin settings
- Custom field on Quick Edit using select/dropdown – almost working right but not showing currently selected value
- Get mysql data for Quick Edit panel
- woocommerce_product_quick_edit_save hook not fired
- Custom Column in CPT admin table not updated after Quick Edit save
- open modal window
- Get the selected posts IDs to use in bulk edit AJAX call
- edit_post_link returns blank
- Adding custom fields to the Quick Edit screen – puzzled about the column concept
- How to edit wordpress post without republishing
- Add Media + Quick Edit buttons not working
- Decouple page name from page title
- Multi Quick Edit – Possible Or Impossible?
- How to fix: Clicking ‘Quick Edit’ link in Admin (edit.php) makes posts disappear?
- Opening file, editing, save, exit, open, edited version opens?
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress
- Add ACF Quick Edit Columns on Comments
- How to add a custom field to the comments “Quick Edit” screen?
- Quick Edit on taxonomy names results in error