This article is a reference of available MLA functions which you may want to use within customizations.
[mla_dashboard_tab]
Displays the entire contents of a MLA dashboard tab (as configured in the MLA settings).
Attributes
tab
(integer 1-3) (required) The tab’s ID.
Usage
[mla_dashboard_tab tab="2"]
[mla_dashboard_rates]
Outputs a table of the affiliate’s commission rates for each level.
Usage
[mla_dashboard_rates]
[mla_dashboard_earnings]
Outputs a table of the affiliate’s referrals and earnings totals.
Usage
[mla_dashboard_earnings]
[mla_dashboard_statistics]
Outputs a table displaying the referrals and earnings within the affiliate’s network (sub affiliates) on each level. This does not display the signed in affiliate’s earnings. It displays the earnings of their sub affiliates grouped by level.
Usage
[mla_dashboard_statistics]
[mla_dashboard_chart]
Displays an affiliate’s network chart
Attributes
affiliate_id
(integer) (optional) Any affiliate ID. Defaults to the signed in affiliate.
Usage
Output the signed in affiliate’s chart.
[mla_dashboard_chart]
[mla_dashboard_chart affiliate_id="5"]
[mla_affiliate_parent_details]
Displays details of an affiliate’s parent.
Attributes
affiliate_id
(integer) (optional) Any affiliate ID. Defaults to the signed in affiliate.display
(string) (optional) What to display. Defaults to the affiliate’s name as set on their profile. Accepted values: user_login, first_name, last_name, user_email, display_name
Usage
Display the signed in affiliate’s parent (referrer).
[mla_affiliate_parent_details]
[mla_affiliate_parent_details affiliate_id="12" display="first_name"]
[mla_team_leader_content]
Outputs conditional content if the logged in affiliate is a Team Leader. Additional shortcodes can be used in the content.
Usage
[mla_team_leader_content]
Content
[/mla_team_leader_content]
[mla_super_team_leader_content]
Outputs conditional content if the logged in affiliate is a Super Team Leader. Additional shortcodes can be used in the content.
Usage
[mla_super_team_leader_content]
Content
[/mla_super_team_leader_content]