WordPress.org

Make WordPress Core

Ticket #15947: register_post_status docs.diff

File register_post_status docs.diff, 1.1 KB (added by simonwheatley, 3 years ago)

Corrects docs, adds additional information

  • wp-includes/post.php

     
    617617 * Optional $args contents: 
    618618 * 
    619619 * label - A descriptive name for the post status marked for translation. Defaults to $post_status. 
    620  * public - Whether posts of this status should be shown in the admin UI. Defaults to true. 
     620 * public - Whether posts of this status should be shown in the front end of the site. Defaults to true. 
    621621 * exclude_from_search - Whether to exclude posts with this post status from search results. Defaults to true. 
     622 * show_in_admin_all_list - Whether to include posts in the edit listing for their post type 
     623 * show_in_admin_status_list - Show in the list of statuses with post counts at the top of the edit  
     624 *                             listings, e.g. All (12) | Published (9) | My Custom Status (2) ... 
     625 *  
     626 * Arguments prefixed with an _underscore shouldn't be used by plugins and themes. 
    622627 * 
    623628 * @package WordPress 
    624629 * @subpackage Post