DEV

WordPress

WordPress Connection

Put WordPress to Work with @Human Automations and @Human Agents

The WordPress Connection documents all Triggers, Actions and Query Operations available for creating automations via the WordPress API.

What can you do with the WordPress Connection?

  • Connect to the WordPress API in a few clicks

  • Use the related WordPress Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Post Created

Triggers on: posts/post_created

Triggered when a new post is created in WordPress.

Post Updated

Triggers on: posts/post_updated

Triggered when an existing post is updated in WordPress.

Post Deleted

Triggers on: posts/post_deleted

Triggered when a post is deleted from WordPress.

User Created

Triggers on: users/user_created

Triggered when a new user is created in WordPress.

User Updated

Triggers on: users/user_updated

Triggered when an existing user's information is updated in WordPress.

User Deleted

Triggers on: users/user_deleted

Triggered when a user is deleted from WordPress.

Comment Created

Triggers on: comments/comment_created

Triggered when a new comment is posted in WordPress.

Comment Updated

Triggers on: comments/comment_updated

Triggered when an existing comment is modified in WordPress.

Comment Deleted

Triggers on: comments/comment_deleted

Triggered when a comment is deleted from WordPress.

Action Operations

Action: Upload Media

Action: Update Post

Action: Update User

Query Operations

Query: Find Post

Example link

Obtaining Access Credentials

To obtain a Personal Access Token (PAT) for WordPress (system-to-system access), follow these steps:

Required Values (Request from User)

  1. WordPress Site URL (e.g., https://your-site.com)

  2. Admin Username & Password (for WordPress dashboard access)

  3. User Account with Administrator Role (must have permission to generate tokens)

Step-by-Step Guide

  1. Log in to WordPress Admin Dashboard

    • Navigate to: https://[your-site-url]/wp-admin

    • Enter admin credentials.

  2. Install & Activate the "Application Passwords" Plugin (if not already enabled)

    • Go to Plugins → Add New.

    • Search for "Application Passwords" (official WordPress plugin).

    • Install & activate it.

  3. Generate a Personal Access Token (PAT)

    • Go to Users → Profile (for your admin account).

    • Scroll to "Application Passwords" section.

    • Enter a name for the token (e.g., "API Access").

    • Click "Add New Application Password".

    • Copy the generated token immediately (it won’t be shown again).

Configuring Webhooks

  1. Install the "WP Webhooks" Plugin

    • Log in to your WordPress dashboard.

    • Navigate to Plugins → Add New.

    • Search for "WP Webhooks", click Install Now, and then Activate.

  2. Navigate to Webhook Settings

    • Go to Settings → WP Webhooks in the sidebar.

  3. Access the "Send Data" Section

    • Click on the "Send Data" tab to view outgoing trigger options.

  4. Select a Trigger Event

    • Choose the event you wish to track (e.g., "Post created", "User updated", or "Comment created").

  5. Add the Destination URL

    • Click the "Add Webhook URL" button for the selected trigger.

    • Enter a Webhook Name (e.g., "Human Automation").

    • Paste the Webhook URL provided by your destination service into the URL field.

    • Click "Add for [Trigger Name]" to save.

  6. Test the Integration

    • Click the "Actions" (three dots) icon next to the added URL and select "Send Demo".

    • Verify that the test payload was successfully received by the target service.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated