How often do you actually click on a edit post link from within the content? For me.. almost never. I usually just click the Edit post/page link in the dashboard bar that’s shown in the top.
If you’re like me, and just want to get rid of that link, add the following one-line filter to your functions.php:
add_filter( 'edit_post_link', '__return_empty_string' );
The __return_empty_string
function says what it does, it returns an empty string so that you don’t have to write a function to do that ๐
ps. this might’ve been my simplest blog post until now!
Happy developing!
Leave a Reply