Core Function
View Source on Trac ↗ register_post_status()
register_post_status( mixed $post_status, mixed $args = array() ) Registers a post status. Do not use before init.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_status string | Name of the post status. Required |
| mixed | (array | string) $args { Optional. Array or string of post status arguments. Required |
Return Value
(object)
object
Function Information
Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement