Add a custom per-user setting in a plugin

Hello :wave:

I’m trying to create a custom user field from a plugin but I’m not sure I fully understand what you’re describing here. In my plugin if I do:

register_editable_user_custom_field 'foo'

Should I still use plugin outlets connectors to display it on the user profile and the user card?

Or is there a mechanism like the custom field in the admin that can add it automatically (including in the users directory)? I want to avoid adding connector and serializer field if there is already a way to do this.

Thanks for your help!

1 Like