I am new to Drupal so this question might be stupid or impossible. I am sorry for that.
I am using the Hidden Nodes module in order to make nodes visible to some users, and not visible to anonymous users.
I also have a custom module where I get some nodes nid ($node->nid->value()), titles, and other stuff programmatically.
Now, I also need to get the hidden_node value for the nodes, but I can't get it because its not a node field.
Sorry if this seems confusing.