Enterprise Shortcode Category: Database
/ Database
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
query.get_results
Title
:
query.get_results
Purpose
:
Retrieves an entire SQL result set from the database (i.e., many rows).
Syntax
:
[query.get_results
query.delete_post_meta
Delete post meta by calling delete_post_meta
Parameters supported : post_id, meta_key, meta_value
Syntax:
[query.delete_post_meta post_id AND meta_key OR meta_value /]
Example