Trying to remove/hide Edit, Quick Edit, Trash and View
-
Hi There,
1st of all apologies for my bad English, i have googled but not found my desired answer/solution…
But i have found a plugin from Sebastian Barria , which i like to adjust to my preference… Originally the plugin from Sebastian Barria helpt me to start, thnx for it btw, to hide the “quick edit option”. I have added a couple of “copy and paste” changed some code and now also “Trash” deleted.
But what i do not understand is why the “Edit” and the “View” links including the “|” symbols are still there:
https://www.dropbox.com/s/je270enahqc8443/Screenshot%202016-01-17%2014.08.52.png?dl=0
Here’s my code:
——————————————————–
<?
function remove_quick_edit(){
?>
<style type=”text/css”>
#the-list .hide-if-no-js,a.editinline{display:none;}
</style>
<?
}function remove_submitdelete(){
?>
<style type=”text/css”>
#the-list .hide-if-no-js,a.submitdelete{display:none;}
</style>
<?
}function remove_edit(){
?>
<style type=”text/css”>
#the-list .hide-if-no-js,a.edit{display:none;}
</style>
<?
}function remove_view(){
?>
<style type=”text/css”>
#the-list .hide-if-no-js,a.view{display:none;}
</style>
<?
}add_action(‘admin_print_styles-edit.php’, ‘remove_quick_edit’);
add_action(‘admin_print_styles-edit.php’, ‘remove_submitdelete’);
add_action(‘admin_print_styles-edit.php’, ‘remove_edit’);
add_action(‘admin_print_styles-edit.php’, ‘remove_view’);
?>
——————————————————–Can someone please help me to find a solution to also remove/hide “Edit” and the “View” links including the “|” symbols?
Thnx up front!
The topic ‘Trying to remove/hide Edit, Quick Edit, Trash and View’ is closed to new replies.