Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
-
post_id
(int) The post id itself. This field is mandatory
-
post_author
(mixed) The ID or the email of the user who added the post. Default is the current user ID.
-
post_date
(string) The date of the post. Default is the current time.
-
post_date_gmt
(string) The date of the post in the GMT timezone. Default is the value of $post_date.
-
post_content
(string) The post content. Default empty.
-
post_content_filtered
(string) The filtered post content. Default empty.
-
post_title
(string) The post title. Default empty.
-
post_excerpt
(string) The post excerpt. Default empty.
-
post_status
(string) The post status. Default 'draft'.
-
post_type
(string) The post type. Default 'post'.
-
comment_status
(string) Whether the post can accept comments. Accepts 'open' or 'closed'. Default is the value of 'default_comment_status' option.
-
ping_status
(string) Whether the post can accept pings. Accepts 'open' or 'closed'. Default is the value of 'default_ping_status' option.
-
post_password
(string) The password to access the post. Default empty.
-
post_name
(string) The post name. Default is the sanitized post title when creating a new post.
-
to_ping
(string) Space or carriage return-separated list of URLs to ping. Default empty.
-
pinged
(string) Space or carriage return-separated list of URLs that have been pinged. Default empty.
-
post_modified
(string) The date when the post was last modified. Default is the current time.
-
post_modified_gmt
(string) The date when the post was last modified in the GMT timezone. Default is the current time.
-
post_parent
(int) Set this for the post it belongs to, if any. Default 0.
-
menu_order
(int) The order the post should be displayed in. Default 0.
-
post_mime_type
(string) The mime type of the post. Default empty.
-
guid
(string) Global Unique ID for referencing the post. Default empty.
-
post_category
(string) A comma separated list of category IDs. Defaults to value of the 'default_category' option. Example: cat_1,cat_2,cat_3. Please note that WordPress just accepts categories of the type "category" here.
-
tags_input
(string) A comma separated list of tag names, slugs, or IDs. Default empty. Please note that WordPress just accepts tags of the type "post_tag" here.
-
tax_input
(string) A simple or JSON formatted string containing existing taxonomy terms. Default empty.
-
meta_input
DEPRECATED! Please use manage_meta_data instead.
-
meta_update
Update (or add) meta keys/values.
-
manage_meta_data
In case you want to add more complex meta data, this field is for you. Check out some examples within our post meta blog post.
-
acf_meta_update
Update (or add) Advanced Custom Fields meta keys/values.
-
wp_error
Whether to return a WP_Error on failure. Posible values: "yes" or "no". Default value: "no".
-
create_if_none
Wether you want to create the post if it does not exists or not. Set it to "yes" or "no" Default is "no".
-
do_action
Advanced: Register a custom action after the plugin fires this webhook.
-
wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Create comment
Create a comment using webhooks.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
(string) The HTTP user agent of the comment_author when the comment was submitted. Default empty.
(int|string) Whether the comment has been approved. Default 1.
(string) The name of the author of the comment. Default empty.
(string) The email address of the $comment_author. Default empty.
(string) The IP address of the $comment_author. Default empty.
(string) The URL address of the $comment_author. Default empty.
(string) The content of the comment. Default empty.
(string) The date the comment was submitted. To set the date manually, comment_date_gmt must also be specified. Default is the current time.
(string) The date the comment was submitted in the GMT timezone. Default is comment_date in the site's GMT timezone.
(int) The karma of the comment. Default 0.
(int) ID of this comment's parent, if any. Default 0.
(int) ID of the post that relates to the comment, if any. Default 0.
(string) Comment type. Default empty.
(array) Optional. Array of key/value pairs to be stored in commentmeta for the new comment. More info within the description.
(int) ID of the user who submitted the comment. Default 0.
Advanced: Register a custom action after this webhook was fired.
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )