Retrieves an affiliate by id. The array returned provides the following attributes:
- affiliate_id - the integer id
- name - the affiliate's name
- email - email address
- from_date - from when the affiliate is valid (*)
- thru_date - [optional] until when the affiliate is valid (*)
- status - either 'active' or 'deleted'
(*) Suggested referrals will succeed if the current date is within those dates. Both are inclusive.
Usage example: $affiliate = affiliates_get_affiliate( $affiliate_id ); $email = $affiliate['email'];
||the affiliate's id|
||affiliate details or null|