Hi,
I’m working with a Question2Answer site and I’m using an existing plugin that displays user profile information. I want to extend this plugin so it can read and display a custom user field stored in the Q2A database.
Specifically:
-
Which plugin hook or layer method should be used to access custom user fields?
-
Is it better to query the database directly or use Q2A’s built-in user APIs?
-
Where in the plugin structure should this logic be placed to follow best practices?
I’m looking for a practical example or advice from someone who has done this before. Thanks in advance.