| @@ 602-611 (lines=10) @@ | ||
| 599 | * |
|
| 600 | * @return array List of post statuses. |
|
| 601 | */ |
|
| 602 | function get_post_statuses() { |
|
| 603 | $status = array( |
|
| 604 | 'draft' => __( 'Draft' ), |
|
| 605 | 'pending' => __( 'Pending Review' ), |
|
| 606 | 'private' => __( 'Private' ), |
|
| 607 | 'publish' => __( 'Published' ) |
|
| 608 | ); |
|
| 609 | ||
| 610 | return $status; |
|
| 611 | } |
|
| 612 | ||
| 613 | /** |
|
| 614 | * Retrieve all of the WordPress support page statuses. |
|
| @@ 623-631 (lines=9) @@ | ||
| 620 | * |
|
| 621 | * @return array List of page statuses. |
|
| 622 | */ |
|
| 623 | function get_page_statuses() { |
|
| 624 | $status = array( |
|
| 625 | 'draft' => __( 'Draft' ), |
|
| 626 | 'private' => __( 'Private' ), |
|
| 627 | 'publish' => __( 'Published' ) |
|
| 628 | ); |
|
| 629 | ||
| 630 | return $status; |
|
| 631 | } |
|
| 632 | ||
| 633 | /** |
|
| 634 | * Register a post status. Do not use before init. |
|