wp post meta add

Add a meta field.

wp post meta add <id> <key> [<value>] [--format=<format>]

Options

<id>

The ID of the object.

<key>

The name of the meta field to create.

[<value>]

The value of the meta field. If omitted, the value is read from STDIN.

[--format=<format>]

The serialization format for the value. [Default: plaintext]

Options:
  • plaintext
  • json