Disable image attachment links

Written by  on October 20, 2016 

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it’s possible to do it manually when you add an image to a post but I want to disable this functionality by default.


What I want to do is set the “Link URL” option to “none” and remove / hide it from the upload attachement screen.

enter image description here

Is there a solution to hook into the “media-upload” “pop-in” ?

Thanks by advance.

Category : Wordpress

Tags :