Remove the delete link from pages without a plugin

I have created a number of pages and don’t want the person managing the site to be able to delete them. I don’t want to use a plugin and there is probably some code that could go in the functions.php file to achieve this. Does anyone know how to hide or remove the ‘delete’ link if you are viewing all the available pages?

I found this post here, but it is 6 years old so not sure if it’s still good in 2018.

Read more here:: Remove the delete link from pages without a plugin

Leave a Reply

Your email address will not be published. Required fields are marked *