Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. function remove_quick_edit( $actions ) {
  2. unset($actions['inline hide-if-no-js']);
  3. return $actions;
  4. }
  5. add_filter('post_row_actions','remove_quick_edit',10,1);
  6.  
  7. function remove_quick_edit( $actions ) {
  8. unset($actions['inline hide-if-no-js']);
  9. return $actions;
  10. }
  11. if ( ! current_user_can('manage_options') ) {
  12. add_filter('post_row_actions','remove_quick_edit',10,1);
  13. }
  14.  
  15. if ( current_user_can('manage_options') ) {
  16. } else {
  17. add_filter('post_row_actions','remove_quick_edit',10,1);
  18. }
  19.  
  20. function remove_quick_edit( $actions ) {
  21. unset($actions['inline hide-if-no-js']);
  22. return $actions;
  23. }
  24. if ( !current_user_can('manage_options') ) {
  25. add_filter('page_row_actions','remove_quick_edit',10,1);
  26. add_filter('post_row_actions','remove_quick_edit',10,1);
  27. }
  28.  
  29. function remove_quick_edit( $actions ) {
  30. unset($actions['inline hide-if-no-js']);
  31. return $actions;
  32. }
  33. if ( !current_user_can('administrator') ) {
  34. add_filter('post_row_actions','remove_quick_edit',10,1);
  35. }
  36.  
  37. add_action('admin_head', 'wc_my_custom_css');
  38. function wc_my_custom_css() {
  39. echo '<style>
  40. .hide-if-no-js {
  41. display:none !important;
  42. }
  43. </style>';
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement