Forums

Feature Request: Hook Filter for get_post_meta (5 posts)

  1. bfintal
    Member
    Posted 9 months ago #

    I was looking for one, but I couldn't find a hook to this. Searched through all the filter hooks available also.

    I think it may be a good addition to filters :)

  2. WPUser111
    Member
    Posted 7 months ago #

    I am having the same problem, I have been trying to make my own, I have had no luck. I also have been asking around. No replies yet :(

  3. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    What are you trying to hook it into for?

  4. bitwit
    Member
    Posted 6 months ago #

    We are in a situation at work where we have many Custom Post Types which are storing multiple languages of data in the post meta.

    We want to be able to query what language we are in, as well as check if the translation exists or pass back the original english.

    get_post_meta() seems like the best place to do this check and pass back what is appropriate. While we could build our own new function to filter the request prior to calling get_post_meta(), we would prefer not to. Also, most WP calls that involved retrieving data already have this filtering capability so it would be a matter of consistency.

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Okay, three people in one topic with different needs is too much :) Guys, make your OWN. Each of your requests is going to be different.

Reply

You must log in to post.

About this Topic