slicewp_get_affiliate_status()

Description

Returns the status of the given affiliate.

Parameters

slicewp_get_affiliate_status( $affiliate_id );
  • $affiliate_id (int)(required) The ID of the affiliate you wish to return the status for.

Return

(string|null) The status of the affiliate, or null if the affiliate with the provided ID doesn’t exist.

Example

The following example shows how you can check if affiliate #10 has the status rejected.

if ( 'rejected' === slicewp_get_affiliate_status( 10 ) ) {

    // Do something.

}

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