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.


(array) An associative array containing the slugs, as keys, and names, as values, of the statuses that an affiliate can have.


$statuses = slicewp_get_affiliate_available_statuses();
// Returned value.

    [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.

Was this article helpful?

Do you have any feedback or suggestions to improve this page?

Can't find what you're looking for? We're here to help.

Contact us