WordPress.org

Ready to get started?Download WordPress

Forums

Add new Publish Status (7 posts)

  1. Ceelos
    Member
    Posted 3 years ago #

    How do i add a new option to the publish status drop down boxes..

    There's currently
    Published
    Pending review
    Draft

    i want to add another one... how do i do that??

  2. Dan Cole
    Member
    Posted 3 years ago #

    It doesn't look like WordPress supports the adding of new status types to the quick edit. The code that displays that quick edit post status change is in: /wp-admin/includes/template.php Line 1095 through 1112 for WordPress 3.0. I'll create a ticket (#14124), so this isn't a problem in future releases.

    The other way of editing the post status is with the Publish meta box. It doesn't mean like you can add an additional status type to that either. It can be found in /wp-admin/includes/meta-boxes.php

    The option you have left is to replace the current Publish meta box with your own function in a plugin you or someone develops. I couldn't quickly do this for you. I'd search for custom post type, maybe, if you wanted to do this yourself.

  3. Ceelos
    Member
    Posted 3 years ago #

    its cool i can create a plugin that'll do something like that but i just wanted to see if there's a quick simple way i can do it by just adding

    <option value='new'>New Option</option> such a simple addon is impossible lol..

  4. TheDailyCrowdsource
    Member
    Posted 3 years ago #

    I would like this ability, too, Dan. This way, different users can open posts in different stages & pass them along to the "next" stage.

    draft->pending->editing->scheduled->published

    Ceelos, Did you accomplish this with a plugin? Any chance I could use your plugin? There's editflow, but it's too complex. I just need different Post Statuses.

    Thanks,
    -Per

  5. TheDailyCrowdsource
    Member
    Posted 3 years ago #

    The option you have left is to replace the current Publish meta box with your own function in a plugin you or someone develops.

    Dan,

    How would I structure a plugin to replace the current publish meta box? I can handle the php/programming of it, but I'm new to programming WP, so I don't know how WP would "replace" the existing function?

    If I simply copy the code from meta-boxes.php (into a plugin) & edit a few things here & there, how would I tell WP to use the new meta-boxes code?

    Thanks,
    -Per

  6. gfjvsfh
    Member
    Posted 3 years ago #

    Anyone knows how to remove the options: visibity, status and schedule?

    I want only the "publish" button.

  7. mingya
    Member
    Posted 2 years ago #

    @gfjvsfh did you find out how to remove the rest of the publish option, and only leave the "publish" button? I'm looking for the same thing too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.