Answers for "wordpress update post php"

PHP
0

wordpress update post php

// Update post 37
$my_post = array(
  'ID'           => 37,
  'post_title'   => 'This is the post title.',
  'post_content' => 'This is the updated content.',
);
 
// Update the post into the database
wp_update_post( $my_post );
Posted by: Guest on March-22-2022

Code answers related to "wordpress update post php"

Browse Popular Code Answers by Language