Home › Forums › Calendar Products › Events Calendar PRO › Clarification needed on tribe_set_the_meta_visibility
- This topic has 5 replies, 3 voices, and was last updated 12 years, 2 months ago by
Patti.
-
AuthorPosts
-
February 12, 2014 at 2:22 pm #103883
Patti
ParticipantCan anyone help me out with how exactly to locate the $meta_id needed for this?
tribe_set_the_meta_visibility( $meta_id, $status, $type )The info on the Meta Walker page simply says “updates the show_on_meta setting for the registered meta item or group by id. The default status is TRUE == ‘visible’ but setting to FALSE will hide the visibility of the meta for display. In order to affect a meta group change the $type to ‘meta_group’.”
Not sure where to get the ID for a specific item I want to turn off. Also not sure what to set the type to if it’s not a ‘meta group’.
I have examples of where it’s used to turn off the entire “Other” meta group, so I’m assuming it could also be used to turn off specific items within that group if I had their id.
Edit
——————————
FYI – I can’t use CSS to hide the individual items because they have no unique classes that I can target and the only way to assign that is if you know what the id is for each item.February 13, 2014 at 5:12 pm #104350Julie Kuehl
ParticipantHey mcewin,
I’m so sorry that we haven’t lived up to our promised level of support for you. While there may be reasons, there’s really no excuse. I am going to assign this to one of our team members who will get back to you tomorrow. We really appreciate your patience and understanding.
– Julie
February 14, 2014 at 5:26 am #104434Patti
ParticipantHey juliekuehl! Thanks so much for checking in and letting me know that someone at the company really cares about support enough to take time to let me know *personally* that I will eventually, maybe get my question answered! Not worried about the “reasons” for the delay, just glad that I may finally be able to move on and finish this project! 😉
February 14, 2014 at 2:13 pm #104655Patti
ParticipantAnything on this? Staying late…
February 17, 2014 at 8:54 am #105424Brook
ParticipantHowdy Patti,
Sorry again about the delay. We are finally getting all caught up from the end of last week’s support rush.
First of all, you might be interested in our function tribe_get_custom_field(“Case Sensitive Label Name”). That will get you the value of a particular custom field. To get a list of custom fields and their IDs I use the following code:
var_dump(tribe_get_option('custom-fields', false));Does that help? I hope so. Again, I am very sorry about the delays you’ve experienced. Definitely out of the norm for us, we try very hard to respond within 24 hours and 9 times out of ten are successful. Please do let me know if I can be of further assistance, or if you have more questions. Cheers!
– Brook
February 17, 2014 at 8:58 am #105426Patti
Participant.
-
AuthorPosts
- The topic ‘Clarification needed on tribe_set_the_meta_visibility’ is closed to new replies.
