Custom Plugin: Select all FEUsers filtered by field value
-
Hi all
I would like to develop a plugin that integrates with the front-end-only-users plugin. Assume we have a defined a custom field (radio) for the sex of a user (Male, Female, Unknown). Is there a public function I may use in order to get all FEUsers that are male? Or is it only possible to get those users by building an inner-join sql query between the users table and the user-fields table? I would like to avoid the second solution, because it is not a good practice to access the database data of another plugin directly.
It would be nice to have such a function in order to make sure that any changes in the structure of the database tables in future versions of the front-end-only-users plugin would not affect other custom plugins.
Any thoughts?
- The topic ‘Custom Plugin: Select all FEUsers filtered by field value’ is closed to new replies.