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]
- wordpress function to change post status [duplicate]
- Custom column for changing post status via ajax
- How to display the status of users (online – offline) in archive.php
- Immediately published posts are scheduled and published 2 hours later
- Missed scheduled WordPress
- How to change post status in hook?
- Setting a title on a Custom Post Type that doesn’t support titles
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- 418 header status, I’m a teapot [closed]
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Show recent published posts
- Check whether a custom taxonomy term has published posts?
- Unschedule a post
- 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
- How can I show my scheduled posts in Google Calendar?
- Add Post Status to Body Class
- Add new post with predefined / preset date
- Template redirect template loaded, but the header 404
- Pending status by default for a specific role
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Custom Status of Custom Post type need to EXCLUDE from Taxonomy pages
- Admin – create custom post status and display above table
- Return scheduled posts with WP REST API
- How to display pending posts on the homepage only for editors
- Ajax function on #publish only saves as draft – how to make it publish?
- How do I publish portfolio items with a future date?
- Add scheduled page or post in the menu section on back-end
- Scheduling publish of a new version of existing page results in 404
- Allow a subscriber to be an author and view only his post
- How can I restore posts from ‘trash’ with their previous post_status? – WordPress
- Adding $args to wp_schedule_event() causes hook to add infinitely to WP Cron
- How to hide private posts even if user is admin
- how to change value return by _stock_status
- How to stop post status from reverting to Published?
- wp_insert_post() creates duplicates with ‘post_status’ => ‘publish’
- Create blog post from external source and set publication date
- Modify loop to include all post statuses not just ‘published’
- Is it normal for a scheduled post to say “Missed Schedule”
- Custom Post Status & Taxonomies
- How to change post status link order(priority) on cpt listing page
- Get new (not old) post inside transition_post_status hook
- How to Show Different Information to your authors/contributers
- Show ‘add comment’ link for status updates in Twenty Thirteen
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Identify and display the fact that user is admin next to username in comment section
- Function is Missing an Action Hook
- 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
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- Is There a Way to Schedule URL to Content Updates?
- Change Post status based on custom field date +1 day
- Set post status to draft after validating post meta values in save_post hook
- Implementing Soft Delete for Bulk Actions / Empty Trash