I extended the "XF\Entity\User" class to add a new field to get it when authorizing with ('api/auth/from-session').
The code looks like this:
class User extends XFCP_User
protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array...
I have created a custom field in registration form, When someone register that value shows on user profile. That okay.
Now, Question is, I want to add the value of another custom field, dynamically When user try to register.
I have extend the Pub/Register method actionRegister() and get the...
What I'm trying to do is:
I wanna add some metadata to a file and modify it as soon as it uploads as an attachment. (before hash calculations etc)
So I thought overriding beforeNewAttachment method in AbstractHandler would do the trick.