WordPress shortcodes

PeachPay supports WordPress shortcodes for placing the PeachPay button in a specific location, either on a page, post, or directly in a theme.

To use the PeachPay shortcode, add the snippet

[peachpay product_id=123]

where the number after product_id= is the id of the product you wish to show in the checkout window when a shopper clicks the PeachPay button. In our example above, we're showing a product with id of 123.

Where to find a product's id

You can find a product's id by going to the WordPress dashboard > Products, and hovering over the item you wish to show. The product id will display when you are hovering on it.

If it's a variable product, you'll have to choose one variation to show. Go to the WordPress dashboard > Products > The specific product you wish to show > Variations. Here you can see the id of a specific variation.