I’ve done it. Here is the post with answers on publishing a post marked as scheduled. Been running the code for 2 years on the site in question and it’s reliable.
Related Posts:
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Show recent published posts
- Can’t schedule post for another time
- Get publish post link?
- How to add custom status to quick edit
- Is it normal for a scheduled post to say “Missed Schedule”
- Visual Studio SignTool.exe Not Found
- How can I delay the publishing of a page or post?
- How to prevent posts from being published too close to each other?
- How can I set a draft page as parent without publishing?
- Why doesn’t wp_update_post() update the post_status field?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- I can’t preview post’s change once they are published
- How to change post status in hook?
- Publish post when edit post form submitted with enter/return pressed on keyboard
- featuring old articles without messing up with the archive
- Hiding by default specific post status on backend list?
- How to make scheduled post preview visible to anyone?
- Why does publish_{custom-post-type} fire on update?
- Is there a way to know if a post has been published through XML-RPC?
- How to unpublish a page and still keep a draft?
- Change scheduled posts to published
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- What differences are there between a Privately Published post and a Draft post?
- Disable “preview changes” button
- Error trying to publish immediately. Post status = future (Missed schedule error)
- Can we have private drafts?
- Update post meta on bulk edit / update
- Schedule future post to custom post status instead of publish?
- Custom post type suppress transition from future to publish
- How to switch wordpress post status between publish and schedule in MySQL?
- WordPress action hooks related to scheduled posts not Fired
- publish_post called too early
- Custom save button shows ‘Are you sure you want to…’ dialog
- Controlled publishing in WordPress
- Change the text of the publish button to Save
- Do action for only switch status for publish_post
- problem with publish date not always appearing [duplicate]
- Update status of all posts in a category
- What is happening to make my Update/Publish button disabled?
- Ajax function on #publish only saves as draft – how to make it publish?
- What is the reason for the new_to_publish hook not working?
- Include future posts in tags and in search
- After I publish a post where does it go
- Should you manually ping new WordPress posts?
- Authors should not publish
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- How does redirect work when publish date changes and date in url changes?
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- Gutenberg publish date datepicker
- If click on Save/Publish change Post Status to Pending Review instead Publish
- How publish post from pending status
- How Google Indexer should only index published pages
- Create blog post from external source and set publication date
- Publish and go to page [duplicate]
- Publish Post Action Not Working
- Auto draft posts when scheduled date is reached
- suffix title with “EXPIRED” when scheduled post has reached it’s published date
- Manage multiple wordpress installs (Best Practice)
- Showing the next post’s title, even if it’s an unpublished post
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- When i save or publish a post setting reset wp
- Can’t publish custom type posts that don’t support title and editor, instead they’re saved as draft
- wordpress function to change post status [duplicate]
- How to display the status of users (online – offline) in archive.php
- How to access the post meta of a post that has just been published?
- Adding custom post status to visibility in publish meta box
- Setting a title on a Custom Post Type that doesn’t support titles
- Limit number of posts a user can make per minute?
- Problem duplicated shortlinks bitly
- How do I batch create revisions of all posts?
- ‘transition_post_status’ only fires when pressing “Add New”
- wp_transition_post_status does not change the status of the post
- stop login if user_status equal zero
- Custom date changer post_date => future – missed schedule error
- How to get the Tags on Publish post hook?
- Count posts by type including drafts and pending posts
- Any way to change post/page status when editing page?
- Showing posts for today and future
- How to return a 410 code for previously published posts now set to draft?
- Modify Publish Metabox location on CPT
- Woocommerce – Remove cart button depending product (post) status
- Update post status from “publish” to “trash” prior to year 2018
- How to add published date in product [closed]
- Put page on Archived statut after end of publication date
- date archive future posts
- Include attachments with a custom taxonomy in search
- Do anything on post_status change [duplicate]
- custom status in Woocommerce with database results
- Implementing Soft Delete for Bulk Actions / Empty Trash