New in AffiliateWP 2.7: affwp_get_{component}_by functions
Starting in AffiliateWP 2.7, we have a host of new “get by” helper functions in the global namespace for third-party developers to use. These functions should make getting core objects on a relational basis much…