Getting Started

Affiliate Area

Troubleshooting

Miscellaneous

Integrations

Pre-sale Questions

Developers

Functions

Filters

slicewp_is_affiliate_active()

Checks if the given affiliate is active or not.

An affiliate is considered active only if their status is “active”. If the affiliate has any other status, they’re not considered active.

slicewp_is_affiliate_active( $affiliate_id );
  • $affiliate_id (int)(required) The ID of the affiliate you wish to check if it’s active.

(bool) True if the given affiliate is active, false otherwise.

The following example shows how you can check if affiliate #10 is active.

if ( slicewp_is_affiliate_active( 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