Filter/Remove HTML Elements on all posts and pages
Here’s an example function that might help you accomplish something like that. Basically what it does is fetch a couple of posts, loops through them, modifies the post_content field and stores the changes. function wpse_87695_clean_post_content() { $posts = get_posts(array( ‘post_type’ => array(‘post’, ‘page’), ‘post_status’ => ‘publish’, /* ‘meta_query’ => array( array( ‘key’ => ‘_wpse_87695_processed’, ‘value’ … Read more