Description
Returns an array with the possible statuses an affiliate can have.
The function is used throughout the plugin to populate affiliate status select fields and to validate affiliate statuses when making requests.
Return
(array) An associative array containing the slugs, as keys, and names, as values, of the statuses that an affiliate can have.
Example
$statuses = slicewp_get_affiliate_available_statuses();
// Returned value.
Array
(
[active] => Active
[inactive] => Inactive
[pending] => Pending
[rejected] => Rejected
)
The returned array can be filtered by applying a callback to the slicewp_affiliate_available_statuses filter.