Skip to content
Developer Tools

When webhook data received with base64 encoded image, upload the image to WordPress and return the image URL in webhook response

Decode a base64 image from an incoming webhook with a PHP function, upload it to WordPress, and return the hosted URL in the response, turning raw image data into a shareable link on the fly.

WebhookWebhook PHP Functions by FlowMatticPHP Functions by FlowMattic Webhook ResponseWebhook Response
~5 min setup used by 3.0k sites

Free · import into FlowMattic in one click

How it works

Every step, explained

Import the template and this whole chain runs on autopilot — here's exactly what happens on each run.

Webhook → PHP Functions by FlowMattic → Webhook Response
3 steps
Webhook
TRIGGER
Webhook · Capture Webhook Response
The workflow starts when data is sent to its unique webhook URL. Point any app, form or service at the URL and its payload flows into every step below.
PHP Functions by FlowMattic
ACTION
PHP Functions by FlowMattic · Call PHP Function
PHP Functions by FlowMattic — call any PHP function and pass data from your workflow. Data is mapped from earlier steps; connect your PHP Functions by FlowMattic account on import.
Webhook Response
ACTION
Webhook Response · Set Webhook Response
Webhook Response — set the custom webhook response from the data in action steps. Data is mapped from earlier steps; connect your Webhook Response account on import.
Why this workflow

Built to own, not to rent

No-code setup

Import the JSON, connect your accounts, and go live in minutes. Every step is pre-mapped — you only add your own credentials.

Runs on your server

Self-hosted on your WordPress install. No per-task fees, no data leaving your infrastructure, no monthly SaaS bill.

Fully customizable

Open it in the visual builder and reshape it — add branches, swap apps, insert filters. A starting point, not a cage.

Ready to automate your WordPress site?

Download this workflow free, or grab FlowMattic and own every automation on your site — no per-task fees, ever.