Here is one idea:
You could try to use the future_to_publish
action to change the post status:
add_action('future_to_publish', 'set_status_online_wpse_95701');
function set_status_online_wpse_95701( $post ) {
if ( $post && $post->post_type==="stream"){
$post->post_status="online"; // change the post_status
wp_update_post( $post );
}
}
Related Posts:
- Why doesn’t wp_update_post() update the post_status field?
- Change scheduled posts to published
- Auto draft posts when scheduled date is reached
- Is it possible to have more “levels” of draft/published statuses?
- What is a “protected” post status?
- how to assign a status/mark to post?
- register_post_status and show_in_admin_all_list
- Changing post status in one click
- How can I run custom function when post status is changed?
- WP_Post_List_Table::get_views – Have post counts account for filters?
- Creating/editing custom ‘post-state’
- Using arbitrary post status without registering it
- Get a list of ALL Statuses both registered and built-in
- Adding custom post status to visibility in publish meta box
- Changing post status
- Include Drafts or Future posts with count_user_posts?
- Remove ‘private’ and ‘pending review’ options from post status dropdown
- Can not get future_to_publish to work
- Which is the better way to get the status of a post?
- “Publish immediately” with custom post status
- Modify Post Status Arguments
- Additional page and post status types
- Add a simple JS Alert Box on Post Submission
- Function to change post status IF current user and post author are the same
- Why does get_post_status display published when attachment is in trash?
- Force Custom Post Type Status to ‘Future’ on first Save or Publish
- Workflow for attachments in WordPress
- how to transition to custom post status on post save
- WordPress action hooks related to scheduled posts not Fired
- How to change custom post type status when non-admin updates post?
- Custom post status filter links always show a count of all posts in the site with that status, not the logged in users count
- wordpress post status inquery
- Multiple Post Status
- retrieve post details in loop
- Any way to change post/page status when editing page?
- Include future posts in tags and in search
- How to change post status from “draft” to “publish”?
- transition_post_status doesn’t work with bulk updates
- Submitted for Review back to a Draft page
- How to Add Custom Post Status in WordPress Admin
- Changing a post status name
- How to update post status to draft if user role is “pending’
- How to create posts with a specific date in bulk
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Using get_post_meta with new_to_publish
- Restrict a Post Types Post Status
- Scheduled posts: set default time?
- Setting post meta data to random value during post status transition / on publish
- How to Display Details page of future (scheduled) posts
- How to change post status from publish to draft using hook in wordpress?
- How can I style future post?
- Hiding by default specific post status on backend list?
- Comments Feed & Custom Post Statuses
- How do I check if a posts status is set to draft or pending?
- why do drafts return as part of wp_query?
- Custom Post Status Posts viewable to the public
- How does WordPress track that a certain User is Logged-In
- Getting the different post statuses + count like in edit.php, in a custom submenu page
- Scheduling posts in database
- Allow Facebook to preview posts before published
- $error = 404 after caught add_rewrite_rule
- Feedburner doesn’t update when “scheduled post” publishes
- What differences are there between a Privately Published post and a Draft post?
- How to integrate blog status?
- Update post status from “publish” to “trash” for half of posts
- Wp_query Add specific pending posts
- Change name of existing post status type
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- Restrict edit, but allow preview for custom post status
- Count posts by type including drafts and pending posts
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- How can I specify the post status of an untrashed post?
- Schedule an action callback
- Is there a way getting post fields using `transition_post_status`
- How to export custom post type with ACF to individual file with automation?
- Showing posts for today and future
- Manually adding or updating CPT automatically sets post_status of future
- Change user role when user’s first post gets published
- How to return a 410 code for previously published posts now set to draft?
- Unable to run custom CRON jobs on aws server
- Custom product status get filtered on all product list views
- Woocommerce – Remove cart button depending product (post) status
- Update post status from “publish” to “trash” prior to year 2018
- Transition_Post_Status hook not working properly
- Put page on Archived statut after end of publication date
- get_next_post() not working with future post status
- Scheduled posts are being published immediately
- Custom status and permalinks don’t work?
- Is it possible to schedule a page edit to go live on a certain date?
- date archive future posts
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- How to Insert data with wp cron
- Include attachments with a custom taxonomy in search
- Display “Today” Instead of Date for Pubslished Posts
- Query for draft or scheduled post
- Custom Query for searching through custom fields
- Do anything on post_status change [duplicate]
- Change a Post’s Status based on the date from a custom field? (for Event posts)
- Give attachments an archive page, and exclude unattached ones