I am building a Rules action that needs to take an array argument, that I would populate using a PHP script on the action UI.

Let's say the action is called TranslateMessage, with arg1 = text, arg2 = array

How to declare arg2 so that it shows up as a text area with PHP input in the Rules UI, and send the array (that I create in the PHP area) as an argument to the action function?

1 Answer 1


you might want to serialize that array or json decode it, than it can easily be passed as a string.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.