Mika MAtikainen

Apr 15, 2020 · 4 min read

How can I update a post programmatically in WordPress using PHP?


 $my_post_id,
 'post_title' => 'My new post title',
 'post_content' => 'Overwrite post content',
 'post_status' => 'public'
);

wpsc_wp_insert_post( $update_post );

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This