query.update_post

/ Database / query.update_post

Update a post with new post data. args can be array or json

Parameters supported : args

It returns: The value 0 or WP_Error on failure. The post ID on success

Syntax:

[query.update_post p1={args} /]


Example:

[arr.create set="template.args"]
  	[ID][request.get add-poetry-ID /][/ID]
        [post_title][request.get add-poetry-title /][/post_title]
        [post_content][request.get add-poetry-description /][/post_content]
        [post_status]publish[/post_status]
  [/arr.create]
[query.update_post p1={template.args} set="template.post" /]
 
Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *