register_post_meta ( $post_type, $meta_key, $args )

  • (string) post_type Post type to register a meta key for. Pass an empty string to register the meta key across all existing post types.
  • (string) meta_key The meta key to register.
  • (array) args Data used to describe the meta key when registered. See {@see} for a list of supported arguments.
  • (bool) True if the meta key was successfully registered, false if not.
Defined at:


Registers a meta key for posts.

Related Functions

unregister_post_meta, register_post_status, register_meta, register_post_type, register_term_meta

Top Google Results

User discussions

wpseek mobile