It's probably super easy. I know it can be done when uploading stuffs to WP but I wonder if there is a simple snippet or setting to automatically deactivate link on attachment.
For example :
I do not want :
<a href=""><img src="" /></a>but I want
<img src="" />
I've veen thinking about a regex to do this but maybe there's a less tricky way to do that.
Hope this is not a duplicate, I've been searching on wpse, found nothing related. Thanks in advance.