Awesome combining both the answers from Mike and Jan I came up with this which works only on the post type in question. We don’t need the conditional of show because the ‘future_show’ hook only grabs the post type of show and updates that.
<?php
function setup_future_hook() {
// Replace native future_post function with replacement
remove_action('future_show','_future_post_hook');
add_action('future_show','publish_future_post_now');
}
function publish_future_post_now($id) {
wp_publish_post($id);
}
add_action('init', 'setup_future_hook');
?>
Related Posts:
- When we register a custom taxonomy or post type, does the WP database modified at all?
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- How to hook WP initialization without modifying functions.php
- Why do I need to register my custom post type a second time when flushing rewrite rules?
- Custom Post Type Dashboard Tab not displaying any posts
- Store a value in global scope after init hook is fired
- Storing revisions of metadata for custom post type
- Select All in Parent Category, Group by Child Category?
- Custom post types and child theme
- setup_postdata is not returning any values
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- How to Add Pages Under Custom Post Type URL Structure?
- Remove base slug in CPT & CT, use CT in permalink
- Having trouble with custom post type / meta box
- Change Post Title Edit Box
- Editor access to menu: custom post type missing
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- Pagination Custom post type
- custom post type index page
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- Is it a good practice to include custom options when registering a post type?
- Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily
- Using date stored as custom field to filter posts displayed in admin
- Custom posts filters in admin
- Check Title Unique Or Not and If not error message and dont save
- Menu Multiple Taxonomies
- remove child post from custom post type archive
- Add Tags to custom post type
- Query that joins the postmeta table twice
- Multiple content sections on a custom post
- Unable to get paginate_links working with a custom query [duplicate]
- Custom page template for category taxonomy
- How can I display an archive of only one category of my custom post type?
- WordPress as Wishlist Application
- Open div inside a custom post-type with Fancybox
- Save metadata as a timestamp, display as a “pretty” date
- get_object_taxonomies() returns empty array for custom post type
- Display all posts in main category and 1 subcategory
- uploading images to specified directories
- Can I search only some of the fields of a custom post type?
- Changing wordpress publication date to ACF date and time picker date not working
- WP_Query order by custom field, then randomly order some of results
- Display a CPT based on a metabox selection
- Next and Previous Posts of Same Parent
- Save the post parent in a custom post type in Gutenberg
- Dynamic template for single custom post
- Customize Custom Post Type URL
- My CPT won’t display no matter what I do
- Create another comment system for CPT
- Custom query for custom post_type
- Adding custom field values to wp_list_pages
- Custom columns doesn’t appear in custom post type
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- How to insert data into meta box from another plugin?
- Generate new post from email
- YOAST SEO won’t work on custom post type archive [closed]
- CPT Taxonomy As Archive Page – Error 404
- Can a custom post type be used as a ‘parent’ on a normal page?
- Methods for development wordpress themes [closed]
- Custom Post Type Archive Pagination
- Preventing role reading others posts
- unapprove comments on custom post type
- Custom post type specific category box
- Making a form for user to add new custom post with custom taxonomies and custom fields
- How can I increase the post count for custom post types only?
- Custom post type pagination error
- CPT: Enable Gutenberg, but disable editor field
- Publish box in CPT remove ‘edit’ link
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Is image slider possible in wordpress post
- How do I troubleshoot pre_get_posts with Debug Bar?
- custom post template design with dropdown option
- How to only get the content of post page while looping?
- Staggering featured post using ‘sticky’
- Delete Custom Posts & Attachments
- Pagination for custom query returns 404
- How can I get the last 5 element of this tax query?
- How to save post title before publish?
- Metaboxes in Loop
- order taxonomy alphabetical
- Query breaking with ‘posts_per_page’ => -1
- Custom post type archive page not showing on archive-posttype.php
- Implement post status update as frontend news announcement
- Custom Post Type Organisation – Taxonomies, Categories and Pages
- Expandable WordPress content (text) inside a post
- How to avoid hardcoded text in a custom page template?
- Exclude categories For Custom post types
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- How to use get_sidebar in plugin folder?
- Sort a custom post type loop by a custom taxomomy instead of chronologically
- Filter CPT based on meta box value using Flexible Posts widget?
- Custom Post Type supports author
- Custom post type & role issues
- Filter Custom post type by another Custom post type
- Show search for data extracted from metabox
- Retrieve a post with its ACF repeater fields in wordpress
- Custom Post Type urls not working
- Just the First Metabox what saves the data!
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Categorizing Custom Posts in Bulk Based on Title