register_post_meta( ... )

Registers a meta key for posts.

Parameters:
  • $post_type string
  • $meta_key string
  • $args array