WordPress2Cloudflare Installation & Usage Guide
1. Installation
- Log in to your WordPress Admin dashboard.
- Navigate to Plugins > Add New and click Upload Plugin.
- Select the
wordpress2cloudflare.zipfile and click Install Now. - Once installed, click Activate.
- You will now see a new menu item in your WordPress sidebar called WordPress2Cloudflare.
2. License Activation
- Navigate to WordPress2Cloudflare > License.
- Enter the license key provided in your welcome email.
- Click Activate License.
- 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.)
- Log in to your Cloudflare Dashboard.
- Note your Account ID (found in the right sidebar of the dashboard).
- Generate an API Token with the Workers Scripts: Edit permissions.
- Ensure you have an Existing Worker created and note its exact name.
4. Configuring the Plugin
- Navigate to WordPress2Cloudflare > Settings.
- Enter your Cloudflare Account ID.
- Enter your Cloudflare API Token.
- Enter the Worker Name.
- Click Save Settings.
- After saving, click the Test Connection button.
- A success message will appear confirming that the plugin can communicate with your Cloudflare Worker.
5. Build & Deploy
- Navigate to WordPress2Cloudflare > Deploy.
- Click the Build & Deploy button.
- The plugin will begin crawling your site and caching the content in the background. You can safely close your browser during this process.
- 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.
- Navigate to WordPress2Cloudflare > API & Automation.
- Click Generate Secret (or use the existing one).
- 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.