Enterprise Shortcode Category: Database
/ Database
query.update_post
Title
:
query.update_post
Purpose
:
Update a post with new post data. args can be array or json
Syntax
:
[query
query.get_comment
Title
:
query.get_comment
Purpose
:
Retrieves comment data given a comment ID or comment object.
Syntax
:
[query.get_comment id=”575512″ output
query.update_post_status
Title
:
query.update_post_status
Purpose
:
Update post status by calling wp_update_post function
Syntax
:
[query.update_post_status post_id AND post_status /]
Input Parameters
:
post_id
query.get_comments
Title
:
query.get_comments
Purpose
:
Retrieve a list of comments.
Syntax
:
[query.get_comments o.exit=d]
{
“post_type”: “notification_tpl”
}
[/query.get_comments]
Input
query.update_post_meta
Title
:
query.update_post_meta
Purpose
:
Updates a post meta field based on the given post ID.
Syntax
:
[query.update_post_meta post_id AND