• Hey,

    After digging deeper into custom meta and custom post types, I hit a problem. What I wanted to do is to check if a meta key’s value already exists in the database, so basically like a unique id key. However you can only check meta values by a posts ID.

    Is there an easy way to check if a meta key’s value already exists in the database without having a posts ID?

    Thanks,
    Mitchell

Viewing 1 replies (of 1 total)
  • Thread Starter Xevo

    (@xevo)

    I found the function metadata_exists, but seeing its new there’s no documentation or examples on it yet. Anyone used it yet?

Viewing 1 replies (of 1 total)
  • The topic ‘Checking if a meta key value already exists’ is closed to new replies.