In my blog I have set up auto-publish for posts and I get 5 thousands new posts every day, in this moment I have more than 150 thousand posts.
I need a script, or a plugin, or a function to connect to my database and strip out all
img tags from post content.
I know the regular expression to match the img tags, but I can't find a script for using this regular expression
to replace imgs in already published posts and to prevent new posts to contain image tags.
I found this class and I think that it will achieve my goal but I am not sure how to edit this
$wpdb->query( "UPDATE $wpdb->posts SET post_parent = 7 WHERE ID = 15 AND post_status = 'static'" );
to fit my needs.
please note: my site is using some auto publish posts feature Any ideas!