Attributes of affiliates_earnings shortcode

Posted in

Hi there,

Please let me know detailed information of affiliates_earnings shortcode.
This shortcode showing affiliate earnings per month of status of “ACCEPTED”.
I would like to show status of “CLOSED”
I tried affiliates_earnings status=”closed” in guesswork, but it is not take effect.

Thank you.

7 Responses to Attributes of affiliates_earnings shortcode

  1. Masayuki February 7, 2014 at 2:20 pm #


    I have one more question.

    How to eliminate the decimal point of the amount of money that is displayed in shortcode below.(example JPY1000.00 —> JPY1000)

    – affiliates_referrals show=”total”

    – affiliates_earnings

    – affiliates_affiliate_stats /

    Thank you

    • antonio February 11, 2014 at 7:54 am #

      you can set the decimals in affiliates-pro/lib/core/constants.php (AFFILIATES_REFERRAL_AMOUNT_DECIMALS), but this also affects the commissions.
      Or a better solution is create your own shortcodes (for example: affiliates_referrals_decimals, …). You can see the code in affiliates-pro/core/class-affiliates-shortcode.php.

  2. Masayuki February 7, 2014 at 1:00 pm #

    Could you give me attribute information of this shortcorde ?

    • Masayuki February 7, 2014 at 1:16 pm #

      \[affiliates_earnings\] is works but accepted status.

      \[affiliates_earnings status="closed"\] is not work.

      \[affiliates_earnings status="pending"\] is not work.

      \[affiliates_earnings status="regected"\] is not work.

      Ofcourse it is in text mode and affiliate has several closed referrals.

      • antonio February 8, 2014 at 8:11 am #

        my test was wrong. [affiliates_earnings] doesn’t accept attributes. Maybe [affiliates_referrals] shortcode can help you.

        • Masayuki February 8, 2014 at 9:56 am #

          Hi Antonio,

          Thanks. I understand.


  3. antonio February 7, 2014 at 7:22 am #

    I have tried this shortcode (copy-paste) and works fine.
    Be sure you are using the texteditor in “Text” mode and that the affiliate has some referral closed.

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