register_meta ( $object_type, $meta_key, $args, $deprecated = null )

  • (string) $object_type Type of object this meta is registered to.
  • (string) $meta_key Meta key to register.
  • (array) $args { Data used to describe the meta key when registered.
  • (string|array) $deprecated Deprecated. Use `$args` instead.
  • (bool) True if the meta key was successfully registered in the global array, false if not. Registering a meta key with distinct sanitize and auth callbacks will fire those callbacks, but will not add to the global registry.
Defined at:
Change Log:
  • 4: .


Registers a meta key.

Related Functions

unregister_meta_key, register_widget, register_setting, register_sidebar, register_sidebars

Top Google Results

User discussions

wpseek mobile