To me you code looks good, I would recommend adding priority as high as 9999
Heres how :
add_filter('the_content', 'filter_ptags_on_images', '9999');
To me you code looks good, I would recommend adding priority as high as 9999
Heres how :
add_filter('the_content', 'filter_ptags_on_images', '9999');