functions.php I have:
global $wpdb; $wpdb->update( $wpdb->posts, array('post_content' => $newcontent), array('ID' => $post_id) );
this code updates the
post_content in the WP DB with my
$newcontent when I publish a post.
In fact I can see the modified content inside the DB and of course I can see it with:
echo get_post_field('post_content', $post_id);
The issue is that (after publish and update) the post editor continues to show the old content!
In a few words... I need a way to force the editor to show the
$newcontent, the one stored into the DB (after publish).