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

Hi,

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?


Comments

3 responses to “Can you use a ‘custom field key’ as a condition?”

  1. 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?

    Regards

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

  2. Hi Clemens,

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

    Cheers

Share