Skip to main content

Hallodesk

WordPress2Cloudflare Installation & Usage Guide

1. Installation

  1. Log in to your WordPress Admin dashboard.
  2. Navigate to Plugins > Add New and click Upload Plugin.
  3. Select the wordpress2cloudflare.zip file and click Install Now.
  4. Once installed, click Activate.
  5. You will now see a new menu item in your WordPress sidebar called WordPress2Cloudflare.

2. License Activation

  1. Navigate to WordPress2Cloudflare > License.
  2. Enter the license key provided in your welcome email.
  3. Click Activate License.
  4. Ensure the status displays as Active before proceeding.

3. Cloudflare Setup

To deploy your static site, you must already have a Cloudflare Worker created.
(Note: This plugin does not automatically create Workers or modify your DNS records.)

  1. Log in to your Cloudflare Dashboard.
  2. Note your Account ID (found in the right sidebar of the dashboard).
  3. Generate an API Token with the Workers Scripts: Edit permissions.
  4. Ensure you have an Existing Worker created and note its exact name.

4. Configuring the Plugin

  1. Navigate to WordPress2Cloudflare > Settings.
  2. Enter your Cloudflare Account ID.
  3. Enter your Cloudflare API Token.
  4. Enter the Worker Name.
  5. Click Save Settings.
  6. After saving, click the Test Connection button.
  7. A success message will appear confirming that the plugin can communicate with your Cloudflare Worker.

5. Build & Deploy

  1. Navigate to WordPress2Cloudflare > Deploy.
  2. Click the Build & Deploy button.
  3. The plugin will begin crawling your site and caching the content in the background. You can safely close your browser during this process.
  4. Once the build is complete, it will automatically deploy the changed files directly to your Cloudflare Worker.

6. API & Automation (n8n, Zapier, Make)

You can trigger automatic deployments from external services using the REST API.

  1. Navigate to WordPress2Cloudflare > API & Automation.
  2. Click Generate Secret (or use the existing one).
  3. Use the provided HTTP POST endpoint URL in your automation tool (e.g. n8n).

Supported API Actions:

  • update: Send this action when a post/page is published or modified.
  • delete: Send this action when a post/page is deleted.

Example Request:

POST /wp-json/hallodesk/v1/publish
Headers:
  Authorization: Bearer <YOUR_API_SECRET>
  Content-Type: application/json

Body:
{
  "post_id": 123,
  "action": "update"
}

The API processes jobs in the background and returns HTTP 200 with a job_id. Use the provided status endpoint to poll the job until it reaches its final status.