Make a “Select” visible only for the admin
-
Hello everyone, requiring again all of your help for a little problem.
I wanted to know if it was possible to make a “Select Tag” for example (or something else, a text/email tag etc…) invisible for users and visible only for admins/editors directly on CF7.
I know there’s the “is_admin” or “current_user_can” thing but that is kinda inconvenient in my opinion because when I’m trying to add for example a <div> with this, it is just putting it at the bottom of my page.
-> Unless it is just because I attach my function to my footer and therefore it is placed after it ? If it is because of this, is it alright to do it this way : “add_action(‘$contact_form’, ‘my_function’);” ?
The topic ‘Make a “Select” visible only for the admin’ is closed to new replies.