[add_post] – Add Post Action

[add_post]
title=
slug=
content=
excerpt=
thumbnail=
author=
type=
status=
pass=
parent=
order=
template=
META KEYS
meta_key_1=value_1
meta_key_2=["vaue_1", "value_2"
]
meta_key_3={
"key_1":"value_1",
"key_2":["value_2","value_3"
]
}
[/add_post]

Action to add a new post.

Attributes:

AttributeExamplesDescription
CONTENT*[add_post]
title=
slug=
content=
excerpt=
thumbnail=
author=
type=
status=
pass=
parent=
order=
template=
META KEYS
meta_key_1=value_1
meta_key_2=["vaue_1", "value_2"
]
meta_key_3={
"key_1":"value_1",
"key_2":["value_2","value_3"
]
}
[/add_post]
The content inside the BBCode will be used to set the post fields and metadata.
IMPORTANT: Use the words "META KEYS" to separate fields and metadata.

Fields:
title: The post's title. Required.
slug: The post's slug (post_name). Optional.
content: The post's content. Optional.
excerpt: The post's excerpt. Optional.
thumbnail: The post's featured image. Optional.
author: The post's author ID. Optional.
type: The post's type. Optional.
status: The post's status. Optional.
pass: The post's password. Optional.
parent: The post's parent ID. Optional.
order: The post's menu order. Optional.
template: The post's template. Optional.

Metadata:
Metadata can be defined as single value of array values. For array values is required to define them with JSON format.

Single value example:
meta_key_1=value_1

Array example (to keep JSON format values should be in double quotes):
meta_key_2=["vaue_1", "value_2"]

Object with keys example:
meta_key_3={
"key_1":"value_1",
"key_2":["value_2","value_3"]
}

To pass a field value in an array, you need to keep the double quotes too:
meta_key_2=["{field.text}", "{field.email}"]

Required.