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
- Connection lost. Saving has been disabled… (Updating Posts/Pages)
- Why doesn’t wp_update_post() update the post_status field?
- 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
- 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 to generate slugs?
- change a post status when users update posts?
- Error in WP_update_post
- What does wp_update_post() do that the $wpdb class does not?
- How can I bulk update all posts without making changes?
- 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
- Updating post title using wp_update_post
- What’s the proper way to use a custom table? [closed]
- Change sticky status of posts from phpMyAdmin
- 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
- Allow Post Author to be 0 on Update
- When User Meta amended update Title and Slug of Post programatically
- how to transition to custom post status on post save
- Set Attachment Image File URL as GUID
- Updating / Saving items generated by wp_terms_checklist on frontend
- wp_update_post not working
- Changing random post publish time for repost
- Updating posts exceeds maximum execution time
- wp_update_post deletes post meta in CPT
- How to automatic update date and time when save custom post type
- Updating my Post when expiry date is past
- Use /prefix/postname as a slug in post_name?
- Update post title from external file?
- $wpdb->update() always need a second try
- Update post if exist from PHP
- wp_update_post creating revisions instead of updating the post
- Frontend form with multiple posts
- How to change post status from “draft” to “publish”?
- Is there a before_save_post hook or something similar
- Wp_editor doesn’t send the required data
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- How to use wp_update_post with ajax on frontend
- Bulk update published posts date randomly using wp-cli?
- Autopopulate a value
- Cannot update newly added User field using wp_update_user
- Update post “A” on comment submition on post “B”
- wp_update_post gives 500 internal error
- update_post_meta not working with transition_comment_status
- update_post_meta not working in template_redirect action
- wp_trash_post() duplicates post to trash
- wp_insert_post($post), add an array of values with update_post_meta
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Set a post expiration and delete a post when expirate
- Update all WordPress posts’s title and content then display them in a table
- Post meta data not showing in frontend, until hitting ‘update’ button
- Bulk Post update_post_meta
- save_post affect creation and deletion
- Can I override the permalink/slug on creation
- Custom Post save causes 500 error
- Update a Post after a user uploads a video
- Comparing pre-saved post_title to post-saved post_title
- wp_update_post function ignores HTML tags
- Function working in single.php but not working in custom template file
- Update Post with Modified Data
- Update user from external script
- wp_update_post does not change post status from draft to publish, returns 1
- Update post / page using API + python
- Suitable hook when creating, updating and deleting posts programmatically
- Taxonomy Child Not Updating Unless I Click Update Twice
- How to Auto Update WordPress Post after specific time?
- Set post status to draft after validating post meta values in save_post hook