Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_quick_edit( $actions ) {
- unset($actions['inline hide-if-no-js']);
- return $actions;
- }
- add_filter('post_row_actions','remove_quick_edit',10,1);
- function remove_quick_edit( $actions ) {
- 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);
- }
- if ( current_user_can('manage_options') ) {
- } else {
- add_filter('post_row_actions','remove_quick_edit',10,1);
- }
- 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);
- }
- function remove_quick_edit( $actions ) {
- unset($actions['inline hide-if-no-js']);
- return $actions;
- }
- if ( !current_user_can('administrator') ) {
- add_filter('post_row_actions','remove_quick_edit',10,1);
- }
- add_action('admin_head', 'wc_my_custom_css');
- function wc_my_custom_css() {
- echo '<style>
- .hide-if-no-js {
- display:none !important;
- }
- </style>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement