How to remove edit link from wordpress frontend

By | September 15, 2016

How to remove edit link from wordpress front end

While working in WordPress, if we have logged in to admin panel and the same time, if we access the frontend pages in the same browser we often see an edit link in post pages. Some developers may feel this is unwanted and want to disable or remove edit link from WordPress front end.

This can be done using the wordpress default function add_filter(). This function is used to Hook a function or method to a specific filter action.

In order to remove edit link from wordpress front end, add the following code to your themes functions.php file.

 

🔥0

Leave a Reply