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
- When using get_terms with hide_empty = true, terms that only contain scheduled posts are not returned. How to override this?
- Scheduled Posts in WordPress do not retain the value of a Custom Field
- How to Get All Posts with any post status?
- How to check if a user (not current user) is logged in?
- New post status for custom post type
- How to update page status from publish to draft and draft to publish
- How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
- Is it possible to have more “levels” of draft/published statuses?
- add action only on post publish – not update
- Hide permalink and preview button and link on custom post
- How to Display a List of Users Who Have Made at Least 1 Post?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Turn Off Automatic Trash Deletion?
- wordpress function to change post status [duplicate]
- What is a “protected” post status?
- how to assign a status/mark to post?
- Schedule Posts to Publish from Dates/Times Pre-Set by Admin
- Using get_post_meta with new_to_publish
- Custom column for changing post status via ajax
- register_post_status and show_in_admin_all_list
- Changing post status in one click
- Is it possible to Schedule Attachments in WordPress?
- How to change “Draft” string for status of custom post type to “Unavailable”?
- InDesign to WordPress workflow
- How to display the status of users (online – offline) in archive.php
- Let private posts stay in status “private” after edit through “editors”
- How to check if page has status published