I need to add: post_date_gmt
$post_information = array(
'ID' => $_REQUEST['ID'],
'post_content' => $_REQUEST['content'],
'post_status' => 'publish',
'post_date_gmt' => $post->post_date_gmt
);
wp_update_post($post_information);
Related Posts:
- wp_update_post() example… how to update the_content in a textarea?
- Why wp_update_post() does not update GUID?
- What are the limitations of wp_update_post()?
- I need to bulk update all wordpress posts on a scheduled time
- wp_update_post does not update post_name
- How to disable saving/changing update date for certain admin users?
- “Internal Server Error” with wp_update_post
- wp_update_post using post_name
- how to get last revision id created after wp_update_post
- why wp_update_post cant update when value is empty?
- update a post with wp_update_post
- Updating posts not working
- Update a post’s info when clicking on a javascript button
- What ‘function’ will ‘update’ a post?
- wp_update_post meta causing 500 error
- Updating post_parent by id (many times)
- Is it possible to “Update” pages via SQL?
- Update post meta is slow while saving post
- Update post (published) date when changing category
- recursively update content
- wp_update_post ignores if/else
- $wpdb->update query incrementing value on it’s own!
- Update button (sometimes) greyed-out
- Set a post to draft once depending on a post meta value (passed certain date)?
- wp_update_post behaves differently for different user role
- Fatal error: Call to undefined function wp_cache_get after update attempt
- Check for update vs new post on save_post action
- How to avoid infinite loop in save_post callback
- Programatically change post author
- wordpress function to change post status [duplicate]
- Connection lost. Saving has been disabled… (Updating Posts/Pages)
- Why doesn’t wp_update_post() update the post_status field?
- Post/Page Publish/Update button not clickable once I make an edit
- Issue with wp_insert_post and post_content field error Could not update post in the database
- Automatically fill custom field value on post publish/update
- Which action hook can I use when a featured image has been selected
- Custom function to rearrange attachments when creating posts – Almost there
- Wp_update_post: Infinite loop even with remove_action solution, OOP
- How to batch update post content with custom post meta value
- Scheduling posts to update once per day with wp_cron
- Fill post titles from post content?
- Keeping post_date same as the pending post_date on privately publishing the post
- Updating a post without escaping ampersands?
- Endless loop with wp_insert_post and wp_update_post
- SQL query to update post_date (one post = one single date & time)
- How can I stop wp_update_post messing up HTML example code?
- Update post date on every new comment?
- How to generate slugs?
- change a post status when users update posts?
- Error in WP_update_post
- What action hook updates post meta?
- bulk post_content update
- wp_update_post on specific custom post type
- Mass Update lines of code for all posts
- What does wp_update_post() do that the $wpdb class does not?
- How can I bulk update all posts without making changes?
- Unable to modify(update) posts – Page not found
- How to check if wp_update_post was successful
- Automatically insert php function into post $the_content
- Can I edit the wp_post > post_content right before its inserted/updated?
- wp_update_post based function works on existing posts, but not new posts
- How trigger to save post when updating post meta
- Updating post title using wp_update_post
- Problem with wp_update_post
- How do I batch create revisions of all posts?
- What’s the proper way to use a custom table? [closed]
- post_status => publish not working
- Adding action to save_post, post needs to be saved twice for function to work
- Change the post date from a meta box
- How Can I Set the Post Author of a Post I Just Created With PHP?
- Change sticky status of posts from phpMyAdmin
- How to show Published date and/or Modified date
- Display success message after wp_update_post
- How to catch and modify custom field values when a page is updated
- Function to change post status IF current user and post author are the same
- Insert and then update post_type by wp_update_post
- wp_insert_post_data filter hook identify current action
- Update post title with category name after editing a category
- Posts are duplicating on wp_post_update
- custom post scheduler for drafts
- If modified on same day, show only time
- List taxonomy terms for post as checkboxes
- Allow Post Author to be 0 on Update
- How to bulk edit image url in featured image and product description?
- How to get the Tags on Publish post hook?
- When User Meta amended update Title and Slug of Post programatically
- How to update all posts but the current one (post__not_in not working?)
- how to transition to custom post status on post save
- wp_update_post() blank screen
- Set Attachment Image File URL as GUID
- Set post_parent value for the images uploaded by Add Media button into post
- Updating / Saving items generated by wp_terms_checklist on frontend
- Post author for revision not being set on update/insert
- wp_update_post via ajax from frontend
- wp_update_post not working
- Changing random post publish time for repost
- Clear cache on post of one type when something happens to post of other type
- Updating posts exceeds maximum execution time
- wp_update_post is not updating category
- wp_update_post deletes post meta in CPT