Can I use field substitutions inside the PHP code area of auto actions plugin?
example: I have php code with a geocode query/action that I only want to run after someone saves their profile either in front or backend. (so member or admin). If I do not specify in the query the code will geocode every user in the database.
I can get around this if I use a substitution in the query like this:
change this:
WHERE $searchfield = 'Yes'
to this:
WHERE $searchfield = 'Yes' and a.id = [user_id]
That way it would only geocode the user whose profile is being saved.
Is that ok to use in the PHP code area?
CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X