Created
September 15, 2020 11:36
-
-
Save kimsible/50dfb5c2c83d5b31b5f8077311545b0d to your computer and use it in GitHub Desktop.
WordPress - Snippet - Remove quick edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_quick_edit($actions) { | |
unset($actions['inline hide-if-no-js']); | |
return $actions; | |
} | |
if (!current_user_can('manage_options')) { | |
add_filter('page_row_actions', 'remove_quick_edit', 10, 1); | |
add_filter('post_row_actions', 'remove_quick_edit', 10, 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment