---
title: Shortcodes
description: "## `[wcoffers_request_button]` Renders the \"Request a Custom Offer\" button for a product anywhere shortcodes run (pages, page builders, block editor). | Attribute | Default | Description | | --- | --- | --- | | `product_id` | current post ID…"
url: "https://www.mswebarts.com/documentation/wc-custom-offers/wc-custom-offers-shortcodes/"
updated: "2026-09-20"
category: WC Custom Offers
---

# Shortcodes

## `[wcoffers_request_button]`

Renders the "Request a Custom Offer" button for a product anywhere shortcodes run (pages, page builders, block editor).

| Attribute | Default | Description |
| --- | --- | --- |
| `product_id` | current post ID | The product to request an offer for. Omit inside a product context to use the current product. |

```
[wcoffers_request_button product_id="123"]
```

## `[wcoffers_seller_request_button]`

Renders the request button for a specific seller (no product preselected; the customer may pick one in the popup).

| Attribute | Default | Description |
| --- | --- | --- |
| `seller_id` | 0 | The seller's WordPress user ID. |

```
[wcoffers_seller_request_button seller_id="45"]
```

> Both shortcodes respect every visibility rule: the global request toggles, seller-owned products, suspended sellers, and the `wcoffers_show_request_button` filter. Logged-out visitors get the login link. If the rules say "hide", the shortcode outputs nothing.
