Hello everyone, I come back with a question that does not seem to me absolutely negligible for an add-on that gives the possibility to add custom fields in posts: how to hide a specific field (in my case a link) to unregistered users. I saw that in this post the field was hidden from all users except the administrators, I don't think adapting it to my purpose is not such a distant thing.
I need this, because I have a forum where I release files that can be useful for users. To prevent these from downloading and leaving, without leaving me anything, I decided to show the post, but to force the user to register if he wants to download the file.. please help me.