(%s)',
'Active (%s)',
'booktics'
);
case 'deactive':
// translators: %s is the count of deactive items.
return _n_noop(
'Deactive (%s)',
'Deactive (%s)',
'booktics'
);
case 'pending':
// translators: %s is the count of pending items.
return _n_noop(
'Pending (%s)',
'Pending (%s)',
'booktics'
);
case 'canceled':
// translators: %s is the count of canceled items.
return _n_noop(
'Canceled (%s)',
'Canceled (%s)',
'booktics'
);
case 'approved':
// translators: %s is the count of approved items.
return _n_noop(
'Approved (%s)',
'Approved (%s)',
'booktics'
);
case 'completed':
// translators: %s is the count of completed items.
return _n_noop(
'Completed (%s)',
'Completed (%s)',
'booktics'
);
case 'not_show':
// translators: %s is the count of items not shown.
return _n_noop(
'Not Show (%s)',
'Not Show (%s)',
'booktics'
);
default:
// translators: %s is the count of items with this status.
return _n_noop(
'Status (%s)',
'Status (%s)',
'booktics'
);
}
}
/**
* Register all custom post statuses.
*/
public function register() {
foreach ( $this->post_statuses as $post_status ) {
register_post_status(
$post_status, array(
'label' => $this->get_label( $post_status ),
'public' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => $this->get_label_count( $post_status ),
)
);
}
}
}