Clarification needed on tribe_set_the_meta_visibility

Home Forums Calendar Products Events Calendar PRO Clarification needed on tribe_set_the_meta_visibility

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #103883
    Patti
    Participant

    Can 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.

    #104350
    Julie Kuehl
    Participant

    Hey 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

    #104434
    Patti
    Participant

    Hey 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! 😉

    #104655
    Patti
    Participant

    Anything on this? Staying late…

    #105424
    Brook
    Participant

    Howdy 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

    #105426
    Patti
    Participant

    .

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Clarification needed on tribe_set_the_meta_visibility’ is closed to new replies.