Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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 );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #update #post #php
ADD COMMENT
Topic
Name
1+8 =