The wpcrm_system_create_priorities allows you to filter the priorities used when creating new records.
The function checks to see if the priority that is being imported is valid against the array of priorities that are included in the $priorities variable that is passed to the filter. If so, the function returns the correctly formatted priority, and if not it returns an empty string.
This can allow you to include priorities that are formatted slightly differently, yet still have the values display correctly in WP-CRM System.
Priorities included by default are:
$priorities = array(
'low' => 'low',
'medium' => 'medium',
'high' => 'high',
The values in the above array are the only valid values that should be returned (or an empty string if none of those apply).
You can have multiple keys that all return the same value in case you are receiving data from several sources that may have their data formatted differently. For example, you may be getting data in several different languages, yet the values that should be returned would still need to be either low, medium, or high.