Run simple PHP function from Panel


for my site I need to manually group users according to their personal id that is created upon sign-up. So I would like to put in a range of personal ids e.g.


then query all of these users and then update their group attribute to a string e.g.


I’ve looked through some plugins and found the Janitor plugin, which might also do what I want, but I feel like I overlooked something that would be even easier to set up.

Thank you!

An alternative would be to run a page.update:after hook once the value is saved in the Panel (in a page, or the site). You would want to make sure that the script only runs if the value has changed.

1 Like