aw2_insert_post

This shortcode is used to create posts. aw2_insert_post takes a JSON object of arguments taken by wp_insert_post function.

Attributes:
  • store_new_post_id:

    You can specify the parameter in which, this shortcode will store the post id of newly created post.
JSON Attributes:

Here is a sample JSON Object that aw2_insert_post can take, for detailed list check wp_insert_post function.

Examples of using aw2_insert_post: