slicewp_get_commission_available_statuses()

Description

Returns an array with the possible statuses a commission can have.

Return

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

Example

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

Array
(
    [paid] => Paid
    [unpaid] => Unpaid
    [pending] => Pending
    [rejected] => Rejected
)

The returned array can be filtered by applying a callback to the slicewp_commission_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.

Open a support ticket