Bulk updates to post_content
<?php /** * Plugin Name: Bulk Post Update * Version: 1.0.0 * * @author Nabil Kadimi <[email protected]> * $link http://wordpress.stackexchange.com/a/242499/17187 **/ add_action( ‘init’, function() { global $wpdb; $table = $wpdb->posts; $post_type=”custompost”; $new_post_content=”Text I want to update all my post content to”; $affected = $wpdb->query( $wpdb->prepare( “UPDATE {$table} SET post_content = %s, WHERE post_type = %s” … Read more