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.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.