register_post_status ( $post_status, $args = array() )

  • (string) $post_status Name of the post status.
  • (array|string) $args { Optional. Array or string of post status arguments.
  • (object)
Defined at:


Register a post status. Do not use before init.

A simple function for creating or modifying a post status based on the parameters given. The function will accept an array (second optional parameter), along with a string for the post status name.

Arguments prefixed with an _underscore shouldn't be used by plugins and themes.

Related Functions

register_post_meta, get_post_status, unregister_post_meta, register_post_type, get_post_statuses

Top Google Results

User discussions

wpseek mobile