> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.wordpress.comments.NewComment

- Component: `appmixer.wordpress.comments.NewComment`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.wordpress 1.3.5](https://connectors.appmixer.com/connector/appmixer.wordpress/1.3.5.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.wordpress/1.3.5/component/appmixer.wordpress.comments.NewComment>

This trigger fires every time a new comment is added.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Site (`siteId`) | text | Select a site. |
| Post (`postId`) | text | Select a post. |

## Output ports

### Port `comment`

| Field | Type | Description |
| --- | --- | --- |
| `ID` | integer | - |
| `URL` | string | - |
| `post.title` | string | - |
| `post.ID` | integer | - |
| `post.type` | string | - |
| `post.link` | string | - |
| `author.ID` | integer | - |
| `author.URL` | string | - |
| `author.login` | string | - |
| `author.email` | string,boolean | - |
| `author.name` | string | - |
| `author.first_name` | string | - |
| `author.last_name` | string | - |
| `author.nice_name` | string | - |
| `author.avatar_URL` | string | - |
| `author.profile_URL` | string | - |
| `author.site_ID` | integer | - |
| date (`date`) | string | - |
| `short_URL` | string | - |
| `content` | string | - |
| `status` | string | - |
| `parent.ID` | integer | - |
| `parent.type` | string | - |
| `parent.link` | string | - |
| `type` | string | - |
| `like_count` | integer | - |
| `i_like` | boolean | - |
| `meta.links.help` | string | - |
| `meta.links.likes` | string | - |
| `meta.links.post` | string | - |
| `meta.links.replies` | string | - |
| `meta.links.self` | string | - |
| `meta.links.site` | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.wordpress.comments.NewComment",
  "author": "Tomasz Hencel <thencel@ntrc.eu>",
  "description": "This trigger fires every time a new comment is added.",
  "private": false,
  "tick": true,
  "auth": {
    "service": "appmixer:wordpress",
    "scope": [
      "global"
    ]
  },
  "outPorts": [
    {
      "name": "comment",
      "options": [
        {
          "label": "ID",
          "value": "ID",
          "schema": {
            "type": "integer",
            "example": 87
          }
        },
        {
          "label": "URL",
          "value": "URL",
          "schema": {
            "type": "string",
            "example": "https://acmeblog.wordpress.com/2026/09/10/hello-automation/#comment-87"
          }
        },
        {
          "label": "post.title",
          "value": "post.title",
          "schema": {
            "type": "string",
            "example": "Hello automation"
          }
        },
        {
          "label": "post.ID",
          "value": "post.ID",
          "schema": {
            "type": "integer",
            "example": 1042
          }
        },
        {
          "label": "post.type",
          "value": "post.type",
          "schema": {
            "type": "string",
            "example": "post"
          }
        },
        {
          "label": "post.link",
          "value": "post.link",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/posts/1042"
          }
        },
        {
          "label": "author.ID",
          "value": "author.ID",
          "schema": {
            "type": "integer",
            "example": 23456789
          }
        },
        {
          "label": "author.URL",
          "value": "author.URL",
          "schema": {
            "type": "string",
            "example": "https://johnreader.example.com"
          }
        },
        {
          "label": "author.login",
          "value": "author.login",
          "schema": {
            "type": "string",
            "example": "johnreader"
          }
        },
        {
          "label": "author.email",
          "value": "author.email",
          "schema": {
            "type": [
              "string",
              "boolean"
            ],
            "example": false
          }
        },
        {
          "label": "author.name",
          "value": "author.name",
          "schema": {
            "type": "string",
            "example": "John Reader"
          }
        },
        {
          "label": "author.first_name",
          "value": "author.first_name",
          "schema": {
            "type": "string",
            "example": "John"
          }
        },
        {
          "label": "author.last_name",
          "value": "author.last_name",
          "schema": {
            "type": "string",
            "example": "Reader"
          }
        },
        {
          "label": "author.nice_name",
          "value": "author.nice_name",
          "schema": {
            "type": "string",
            "example": "johnreader"
          }
        },
        {
          "label": "author.avatar_URL",
          "value": "author.avatar_URL",
          "schema": {
            "type": "string",
            "example": "https://0.gravatar.com/avatar/b1946ac92492d2347c6235b4d2611184?s=96&d=identicon&r=G"
          }
        },
        {
          "label": "author.profile_URL",
          "value": "author.profile_URL",
          "schema": {
            "type": "string",
            "example": "https://gravatar.com/johnreader"
          }
        },
        {
          "label": "author.site_ID",
          "value": "author.site_ID",
          "schema": {
            "type": "integer",
            "example": 0
          }
        },
        {
          "label": "date ",
          "value": "date",
          "schema": {
            "type": "string",
            "example": "2026-09-10T11:02:00+02:00"
          }
        },
        {
          "label": "short_URL",
          "value": "short_URL",
          "schema": {
            "type": "string",
            "example": "https://wp.me/pNxYz-gO%23comment-87"
          }
        },
        {
          "label": "content",
          "value": "content",
          "schema": {
            "type": "string",
            "example": "<p>Great write-up, thanks!</p>\n"
          }
        },
        {
          "label": "status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "approved"
          }
        },
        {
          "label": "parent.ID",
          "value": "parent.ID",
          "schema": {
            "type": "integer",
            "example": 85
          }
        },
        {
          "label": "parent.type",
          "value": "parent.type",
          "schema": {
            "type": "string",
            "example": "comment"
          }
        },
        {
          "label": "parent.link",
          "value": "parent.link",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/comments/85"
          }
        },
        {
          "label": "type",
          "value": "type",
          "schema": {
            "type": "string",
            "example": "comment"
          }
        },
        {
          "label": "like_count",
          "value": "like_count",
          "schema": {
            "type": "integer",
            "example": 0
          }
        },
        {
          "label": "i_like",
          "value": "i_like",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "meta.links.help",
          "value": "meta.links.help",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/comments/87/help"
          }
        },
        {
          "label": "meta.links.likes",
          "value": "meta.links.likes",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/comments/87/likes/"
          }
        },
        {
          "label": "meta.links.post",
          "value": "meta.links.post",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/posts/1042"
          }
        },
        {
          "label": "meta.links.replies",
          "value": "meta.links.replies",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/comments/87/replies/"
          }
        },
        {
          "label": "meta.links.self",
          "value": "meta.links.self",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789/comments/87"
          }
        },
        {
          "label": "meta.links.site",
          "value": "meta.links.site",
          "schema": {
            "type": "string",
            "example": "https://public-api.wordpress.com/rest/v1.1/sites/123456789"
          }
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "siteId": {
          "type": "number"
        },
        "postId": {
          "type": "number"
        }
      },
      "required": [
        "siteId"
      ]
    },
    "inspector": {
      "inputs": {
        "siteId": {
          "type": "text",
          "label": "Site",
          "index": 1,
          "source": {
            "url": "/component/appmixer/wordpress/posts/ListSites?outPort=sites",
            "data": {
              "transform": "./transformers#sitesToSelectArray"
            }
          },
          "tooltip": "Select a site."
        },
        "postId": {
          "type": "text",
          "label": "Post",
          "index": 2,
          "source": {
            "url": "/component/appmixer/wordpress/posts/ListPosts?outPort=posts",
            "data": {
              "properties": {
                "siteId": "properties/siteId"
              },
              "transform": "./transformers#postsToSelectArray"
            }
          },
          "tooltip": "Select a post."
        }
      }
    }
  },
  "icon": "(data URI omitted)"
}
```
