Title: UCP Adapter For WooCommerce
Author: Dhiraj Patra
Published: <strong>27. januar, 2026</strong>
Last modified: 29. januar, 2026

---

Søg plugins

![](https://ps.w.org/ucp-adapter-for-woocommerce/assets/banner-772x250.png?rev=3447436)

![](https://ps.w.org/ucp-adapter-for-woocommerce/assets/icon.svg?rev=3447436)

# UCP Adapter For WooCommerce

 Af [Dhiraj Patra](https://profiles.wordpress.org/dhirajpatra/)

[Download](https://downloads.wordpress.org/plugin/ucp-adapter-for-woocommerce.1.0.3.zip)

 * [Detaljer](https://da.wordpress.org/plugins/ucp-adapter-for-woocommerce/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/ucp-adapter-for-woocommerce/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/ucp-adapter-for-woocommerce/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/ucp-adapter-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/)

## Beskrivelse

UCP Adapter For WooCommerce is a powerful WordPress plugin that provides REST API
endpoints for Universal Commerce Platform (UCP) integration. It enables seamless
communication between your WordPress site and external commerce platforms through
secure, standardized API endpoints.

Thank you for using our plugin! This add-on connects your WordPress site to the 
powerful world of WordPress’s Agentic Commerce, allowing you to create automated
shopping assistants for your users.

### 🚀 Core Features

Our plugin leverages WordPress’s MCP (Model Context Protocol) servers plugin and
the open **Universal Commerce Protocol (UCP)** standard to enable secure, intelligent
commerce actions. Here’s what you can build:

 * **Smart Product Discovery:** Enable agents to search products across WordPress
   merchants, apply filters, and display interactive product cards directly within
   a chat interface on your site.
 * **Seamless Checkout:** Allow agents to create checkout sessions, collect buyer
   information, attach payment details, and complete purchases on behalf of users.
 * **Order Tracking:** After a purchase, agents can track order status, fulfillment
   updates, and post-purchase events like refunds or returns.

### 🔗 How It Works

The plugin acts as a **Platform** within the UCP framework, facilitating secure 
communication between your users (buyers), WordPress **Merchants**, and payment 
or credential providers. It implements these key UCP capabilities:

 1. **Discovery  Checkout:** An agent can help a user find a product and instantly 
    retrieve the necessary details to start a checkout session.
 2. **Checkout Completion:** The agent can securely submit the checkout. If further
    user action is needed, it can gracefully open a web checkout page.
 3. **Post-Purchase:** The agent provides ongoing value by fetching real-time updates
    on order delivery and status changes.

### 💡 Use Case Example

Imagine a user in your site’s chat asking, “Find me a red coffee mug under $20.”
The plugin-powered agent can:
 * Query the WordPress Catalog across multiple stores.*
Return filtered, interactive results. * Guide the user through selecting a variant,
adding it to cart, and checking out—all without leaving your WordPress environment.*
Get this client https://github.com/dhirajpatra/adk-agent-gcp/tree/main/ai-agents-
adk/ucp_recommendation_system to connect your site with AI agent.

#### Key Features

 * **Session Management**: Create and manage user sessions with automatic expiration
 * **REST API Endpoints**: Three core endpoints (Session, Update, Complete) for 
   UCP communication
 * **Security First**: API key authentication, rate limiting, and IP whitelisting
 * **Developer Friendly**: Clean, extensible code following WordPress coding standards
 * **Extensible**: Hooks and filters throughout for custom implementations
 * **Admin Interface**: Easy-to-use settings and session monitoring dashboard
 * **Database Storage**: Efficient session storage with automatic cleanup

#### REST API Endpoints

 1. **POST /wp-json/ucp/v1/session** – Create a new session
 2. **PUT /wp-json/ucp/v1/update/{session_id}** – Update session data
 3. **POST /wp-json/ucp/v1/complete/{session_id}** – Complete a session
 4. **GET /wp-json/ucp/v1/status/{session_id}** – Check session status
 5. **GET /wp-json/ucp/v1/sessions** – List all sessions
 6. **GET /wp-json/ucp/v1/product/search** – Search for products

#### Use Cases

 * E-commerce platform integration
 * Third-party checkout systems
 * Payment gateway connections
 * Order management systems
 * Multi-platform commerce solutions

#### Developer Resources

Build custom UCP adapters for platforms like:
 * Custom e-commerce solutions * Membership
plugins * Digital product handlers * MemberPress

### API Documentation

#### Create Session

**Endpoint**: `POST /wp-json/ucp/v1/session`

**Headers**:
 `Content-Type: application/json X-UCP-API-Key: your-api-key

**Body**:
 `json { "platform": "woocommerce", "user_data": { "user_id": 123, "email":"
user@gmail.com" } }

**Response**:
 `json { "success": true, "session_id": "ucp_abc123...", "expires_at":
1234567890, "message": "Session created successfully." }

#### Update Session

**Endpoint**: `PUT /wp-json/ucp/v1/update/{session_id}`

**Body**:
 `json { "action": "add_item", "data": { "product_id": 456, "quantity":
2 } }

#### Complete Session

**Endpoint**: `POST /wp-json/ucp/v1/complete/{session_id}`

**Body**:
 `json { "status": "completed", "metadata": { "order_id": 789 } }

#### List Sessions

**Endpoint**: `GET /wp-json/ucp/v1/sessions`

**Parameters**:
 * `page`: Page number (optional, default 1) * `limit`: Results 
per page (optional, default 10)

**Response**:
 `json { "success": true, "data": [ { "session_id": "ucp_abc123...","
status": "active", "created_at": "2024-01-01 12:00:00", "expires": 1234567890 } ],"
meta": { "page": 1, "limit": 10, "total": 5 } }

#### Product Search

**Endpoint**: `GET /wp-json/ucp/v1/product/search`

**Parameters**:
 * `search`: Search query (required) * `page`: Page number (optional,
default 1) * `limit`: Results per page (optional, default 10)

**Response**:
 `json { "success": true, "data": [ { "id": 123, "name": "T-Shirt","
price": "20.00", "image": "https://example.com/image.jpg", "permalink": "https://
example.com/product/t-shirt" } ], "meta": { "page": 1, "limit": 10, "search": "shirt","
count": 1 } }

#### Actions Available

 * `add_item` – Add an item to the session
 * `update_item` – Update an existing item
 * `remove_item` – Remove an item from the session
 * `set_data` – Set custom session data
 * Custom actions via filters

### Privacy Policy

UCP Adapter For WooCommerce stores session data temporarily in your WordPress database.
This data is automatically cleaned up based on your configured retention settings.
The plugin does not send any data to external services.

Session data may include:
 * User identifiers * Platform information * Custom data
provided via API calls

It is your responsibility to ensure compliance with privacy regulations (GDPR, CCPA,
etc.) when using this plugin.

### Credits

Developed with WordPress coding standards and best practices in mind.

### Support

Support Forum: https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce

## Skærmbilleder

[⌊Settings page with API key management⌉⌊Settings page with API key management⌉[

Settings page with API key management

[⌊Active sessions dashboard⌉⌊Active sessions dashboard⌉[

Active sessions dashboard

[⌊REST API endpoint documentation⌉⌊REST API endpoint documentation⌉[

REST API endpoint documentation

[⌊Session status monitoring⌉⌊Session status monitoring⌉[

Session status monitoring

## Installation

#### Automatic Installation

 1. Log in to your WordPress admin panel
 2. Navigate to Plugins > Add New
 3. Search for “UCP Adapter For WooCommerce”
 4. Click “Install Now” and then “Activate”

#### Manual Installation

 1. Download the plugin zip file
 2. Log in to your WordPress admin panel
 3. Navigate to Plugins > Add New > Upload Plugin
 4. Choose the downloaded zip file and click “Install Now”
 5. Activate the plugin through the ‘Plugins’ menu

#### Configuration

 1. Navigate to UCP Adapter in the admin menu
 2. Copy your API key from the Settings page
 3. Configure session timeout and rate limiting as needed
 4. Use the API key in your UCP requests

## FAQ

### How do I get an API key?

An API key is automatically generated when you activate the plugin. You can find
it in the UCP Adapter > Settings page. You can also regenerate it at any time.

### How do I authenticate API requests?

Include your API key in the request header:
 X-UCP-API-Key: your-api-key-here

Or as a query parameter:
 ?api_key=your-api-key-here

### What happens to expired sessions?

Expired sessions are automatically cleaned up on an hourly basis. Completed sessions
are kept for 7 days before being removed.

### Can I customize the session timeout?

Yes, you can configure the session timeout in the Settings page. The default is 
3600 seconds (1 hour).

### Is this plugin compatible with WooCommerce?

Yes! This plugin is designed to provide the necessary API endpoints for Universal
Commerce Platform (UCP) integration with WooCommerce. You can also build additional
custom functionality using the provided hooks and filters.

### How do I extend the plugin?

The plugin provides numerous hooks and filters:

 * `ucp_adapter_init` – Runs after plugin initialization
 * `ucp_session_created` – Fires when a session is created
 * `ucp_session_updated` – Fires when a session is updated
 * `ucp_session_completed` – Fires when a session is completed
 * `ucp_before_session_complete` – Filter data before completion
 * `ucp_update_action_{action}` – Handle custom update actions

### Where can I get support?

For support questions, please use the WordPress.org support forums. For bugs and
feature requests, visit our GitHub repository.

## Anmeldelser

![](https://secure.gravatar.com/avatar/3ea7419fd5f2c3e4e28299e453d24c4b0804bdeba6aa49ccf663910ad2dc5a77?
s=60&d=retro&r=g)

### 󠀁[Useful Plugin](https://wordpress.org/support/topic/useful-plugin-1124/)󠁿

 [omptra](https://profiles.wordpress.org/omptra/) 27. januar, 2026

Useful plugin for developers needing UCP-based API integration with WooCommerce;
works as described and is well-structured.

 [ Læs 1 anmeldelse ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/)

## Bidragsydere & udviklere

“UCP Adapter For WooCommerce” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ Dhiraj Patra ](https://profiles.wordpress.org/dhirajpatra/)

[Oversæt “UCP Adapter For WooCommerce” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/ucp-adapter-for-woocommerce)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/ucp-adapter-for-woocommerce/),
tjek [SVN repository](https://plugins.svn.wordpress.org/ucp-adapter-for-woocommerce/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/ucp-adapter-for-woocommerce/)
via [RSS](https://plugins.trac.wordpress.org/log/ucp-adapter-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.2

 * Added product search REST API endpoint.
 * Added sessions list REST API endpoint.
 * Added ‘requires plugins’ header.

#### 1.0.0

 * Initial release
 * Session management system
 * Three core REST API endpoints (Session, Update, Complete)
 * API key authentication
 * Rate limiting functionality
 * IP whitelisting support
 * Admin dashboard with settings
 * Session monitoring interface
 * Automatic session cleanup
 * Comprehensive documentation

## Meta

 *  Version **1.0.3**
 *  Senest opdateret **9 måneder siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 6.9 eller højere **
 *  Testet op til **6.9.10**
 *  PHP-version ** 8.0 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/ucp-adapter-for-woocommerce/)
 * Tags
 * [api](https://da.wordpress.org/plugins/tags/api/)[commerce](https://da.wordpress.org/plugins/tags/commerce/)
   [integration](https://da.wordpress.org/plugins/tags/integration/)[rest](https://da.wordpress.org/plugins/tags/rest/)
   [ucp](https://da.wordpress.org/plugins/tags/ucp/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/ucp-adapter-for-woocommerce/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/reviews/)

## Bidragsydere

 *   [ Dhiraj Patra ](https://profiles.wordpress.org/dhirajpatra/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce/)