| @@ -232,8 +232,24 @@ | ||
| 232 | 232 | ) |
| 233 | 233 | ); |
| 234 | 234 | |
| 235 | 235 | register_post_status( |
| 236 | + 'completed', | |
| 237 | + array( | |
| 238 | + 'label' => _x( 'Completed', 'post status label', 'subscription' ), | |
| 239 | + 'public' => true, | |
| 240 | + // translators: completed posts count. | |
| 241 | + 'label_count' => _n_noop( 'Completed <span class="count">(%s)</span>', 'Completed <span class="count">(%s)</span>', 'subscription' ), | |
| 242 | + 'post_type' => array( 'subscrpt_order' ), | |
| 243 | + 'show_in_admin_all_list' => true, | |
| 244 | + 'show_in_admin_status_list' => true, | |
| 245 | + 'show_in_metabox_dropdown' => true, | |
| 246 | + 'show_in_inline_dropdown' => true, | |
| 247 | + 'dashicon' => '', | |
| 248 | + ) | |
| 249 | + ); | |
| 250 | + | |
| 251 | + register_post_status( | |
| 236 | 252 | 'pe_cancelled', |
| 237 | 253 | array( |
| 238 | 254 | 'label' => _x( 'Pending Cancellation', 'post status label', 'subscription' ), |
| 239 | 255 | 'public' => true, |