Getting Started

Affiliate Area

Troubleshooting

Miscellaneous

Integrations

Pre-sale Questions

Developers

Functions

Filters

slicewp_get_affiliate_available_statuses()

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.

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