How to remove links from images using functions.php?

Posted by Prem Tiwari | Updated on

If you want to remove links from images using functions.php in WordPress? Use following code in your theme’s functions.php file OR in site specific plugin.

If you don’t care about non-attachment images and want all images within the post content to not be wrapped in links anyway, this should suffice:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers