I need to add some custom info in my invoices. Some info are stored as custom fields for users Please advise what function to use (or to create?) given the active $user and the name of the custom field (such as 'company_name')
If that is an SQL field (recommended) : PHP: $user->company_name If that is non-SQL field: PHP: $user->data()->get('company_name')