title: Alternative to wp_update_post() in Wordpress REST API
body: <p>I'm a beginner and I'm trying to write a Wordpress Plugin in PHP to auto-update content on multiple pages.
  I managed to make it work, it updates correctly, however it breaks multiple page options (controlled by the theme). I believe it's caused by the <code>wp_update_post()</code> function.</p>
  <p>I'm looking for the REST API equivalent of this, since it works successfully when I tried with Python.</p>
  <pre><code>&lt;?php
  .
  ..
  ... 
               $new_content = str_replace($old_data, $new_data, $content);
               $edited_post = ['ID'=&gt; $pageID, 'post_content' =&gt; $new_content];
               wp_update_post( $edited_post);
  </code></pre>
  <p>Thank you !</p>