Can you use a ‘custom field key’ as a condition?

Posted in


I want to set a condition rule in another plugin, so that an action will be activated if the order matches an affiliate id.

Can I use ‘affiliate_id’ as a custom field key? Or is it this not a custom field?

3 Responses to Can you use a ‘custom field key’ as a condition?

  1. Clemens January 20, 2015 at 1:16 pm #

    Hi Kento,

    Thanks for your reaction! The other plugin only works with a ‘custom field key’. I tried ‘affiliate_id’ or ‘affiliates_refferal’, but these are not working. How can I setup a custom field for this? Can I include an action for this in functions.php?


    • kento January 26, 2015 at 11:17 am #

      You would have to use the action that I’ve mentioned, a custom field by itself would not be appropriate.

  2. kento January 17, 2015 at 6:13 pm #

    Hi Clemens,

    You could probably use the affiliates_referral action for that, see the Actions documentation section for details on it please.


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