Replacing image attributes (data-src) also applies to backend
Solution is simple, check that is_admin() returns false before doing any modifications to the content, or hook on admin_init to add you hooks. I don’t think that the_content is used in the context of admin, but thumbnail generation might be used. Another thing to keep in your mind is that those hooks might be triggered … Read more