{"id":992,"date":"2022-05-11T15:37:09","date_gmt":"2022-05-11T15:37:09","guid":{"rendered":"https:\/\/mklasen.com\/?p=992"},"modified":"2022-05-27T17:09:54","modified_gmt":"2022-05-27T17:09:54","slug":"remove-all-edit-post-links-in-wordpress-with-a-simple-filter","status":"publish","type":"post","link":"https:\/\/mklasen.com\/remove-all-edit-post-links-in-wordpress-with-a-simple-filter\/","title":{"rendered":"Remove all edit post links in WordPress with a simple filter"},"content":{"rendered":"\n
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.<\/p>\n\n\n\n
If you’re like me, and just want to get rid of that link, add the following one-line filter to your functions.php:<\/p>\n\n\n\n
add_filter( 'edit_post_link', '__return_empty_string' );<\/code><\/pre>\n\n\n\nThe __return_empty_string<\/code> function says what it does, it returns an empty string so that you don’t have to write a function to do that \ud83d\ude09<\/p>\n\n\n\nps. this might’ve been my simplest blog post until now!<\/em><\/p>\n\n\n\nHappy developing!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"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 […]<\/p>\n","protected":false},"author":1,"featured_media":1086,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[55,53,51],"acf":[],"yoast_head":"\n
Remove all edit post links in WordPress with a simple filter - Marinus Klasen<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\n\n\n\t\n\t\n\t\n