register_post_meta


register_post_meta ( $post_type, $meta_key, $args )

Parameters:
  • (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 register_meta()} for a list of supported arguments.
Returns:
  • (bool) True if the meta key was successfully registered, false if not.
Defined at:

Description

Registers a meta key for posts.

Related Functions

unregister_post_meta, register_meta, register_post_status, register_term_meta, register_post_type

Top Google Results

User discussions

wpseek mobile