Filters the statuses available for affiliates.


  • $statuses (array) The available statuses for affiliates.


Let’s say you want to add a status for affiliates that decide to abandon your affiliate program.

The only thing you’d need to do is add a new element to the $statuses array, with your custom slug, in this case abandoned, and your custom name for the status, in this case Abandoned.

function register_custom_affiliate_status( $statuses ) {

    $statuses['abandoned'] => 'Abandoned';

    return $statuses;


add_filter( 'slicewp_affiliate_available_statuses', 'register_custom_affiliate_status' );

Important note: SliceWP uses the following 3 statuses within the core plugin and its add-ons for various functionality: pending, active, rejected.

Please make sure you don’t unset any of these 3 statuses when altering the affiliate available statuses array.

You can modify the values of the array elements without any issues (for example, if you feel the names don’t fit your affiliate program), however the keys must remain in place.

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