admin panel – How to remove “delete” button from category editing page

Question

i want to disable, hide or remove delete buttons from category page

enter image description here

I tried editing functions.php with no luck:

add_action('admin_head', 'hide_category_buttons');

function hide_category_buttons() {
  echo '<style>
    .taxonomy-category tr:hover .row-actions {
        visibility: hidden;
    }
  </style>';
}
0
Antanas Ignas 2 years 2020-12-28T12:10:34-05:00 0 Answers 6 views 0

Leave an answer

Browse
Browse