Count tiers levels


Hi guys!

Hopes everything is good with?

I want to have some help/guidelines though I want to create a shortcode where I can show for an affiliate how many tiers who has signed up in each level. Like “You have 20 in level 1” , “You have 13 in level 2” etc etc

Been searching around here in forums without any luck.

Is there any walker for render tree or similar that I can use.
Would really appreciate some input from you guys.


One Response to Count tiers levels

  1. George August 26, 2022 at 10:42 am #

    Hey Brandit,

    Welcome back to our forum and apologies for the delay. Everything is pretty good over here, hope the same to you. 🙂

    As for the tier levels perhaps if you use
    Affiliates_Multi_Tier::get_tree( $affiliate_id, $tree );
    it could be useful to your case. This will obtain the $tree indexed by the affiliate ids involved in this tree. The first element’s index will be the affiliate_id you’re checking for and the rest, if any, will be those affiliates referred by the initial one.
    Please give it a try and let me know if you can use it.

    Kind regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account