/** * Translate Status Index To Status * * * @since 1.0.0 * @param (int) $status_index The index of a status, equals the array index * @return (string) Status */
The tickets are saved as a custom post type. The ticket status like Open or Close is saved as a custom field. In this custom field the plugin saves only a number. All possible statuses are returned as an array by
sts_get_statusArr(). The number is the array index of the status.
sts_translate_status() translates this index to the name of the status.