Setting up a withdrawal button for WordPress & WooCommerce
Step by step: how to set up the withdrawal button for your WordPress or WooCommerce shop – in just a few minutes, without installing a plugin.
With over 40 % market share, WordPress is the most popular content management system in the world – and WooCommerce is the most-used shop plugin. If you run a WordPress or WooCommerce shop, you too must offer a withdrawal button, in Germany since 19 June 2026. In this article we show you how to set up the withdrawal button for WordPress.
Why WordPress shops are affected
The new obligation under § 356a BGB (Germany’s transposition of the EU-wide rule) applies to all B2C online shops – regardless of the shop system in use. This affects:
- WooCommerce shops: whether with Germanized, German Market or no additional plugin
- WordPress + plugin shops: Easy Digital Downloads, WP eCommerce and other e-commerce plugins
- WordPress service providers: also if you sell services (consulting, coaching, courses) online
What matters is not the shop system but whether you conclude contracts with consumers where a right of withdrawal exists.
Option 1: Germanized plugin
Germanized is a widely used plugin for WooCommerce shops in Germany and covers many legal requirements directly in the shop.
Points to weigh up if you rely on a plugin:
- You need to test the plugin implementation in your own setup
- Possible incompatibilities with other plugins
- Dependence on a single plugin provider
- You have to check yourself whether the implementation covers the requirements that apply to you
Option 2: WiderrufButton widget (available now)
WiderrufButton is a standalone solution that works independently of WordPress plugins. Integration is done via a single script tag – no plugin installation, no database changes, no maintenance overhead.
Advantages over a plugin solution:
- Available now: no need to wait for plugin updates
- System-independent: works with any theme and any plugin
- CSS-isolated: runs in a shadow DOM capsule – no conflicts with your theme CSS
- Automatic updates: legal changes are rolled out automatically
- GDPR-compliant: no cookies, hosting in Germany
Step-by-step guide with WiderrufButton
Here is how to set up the withdrawal button for your WordPress shop:
Step 1: Create a free account
Create a free account at widerrufbutton.net. You only need your email address – no credit card.
Step 2: Add your shop
Add your shop in the dashboard. Enter the name and the domain (e.g. „my-shop.com“). WiderrufButton automatically generates a unique widget key for your shop.
Step 3: Insert the script tag
Insert the script tag into your WordPress shop. You have several options for this:
- Theme editor: under „Appearance → Theme File Editor“ in
footer.phpbefore</body> - WPCode plugin: install the free WPCode plugin and add the script as a „Footer Snippet“
- Child theme: in
functions.phpviawp_enqueue_script()
The code looks like this (you will find your widget key in the dashboard):
<script src="https://widerrufbutton.net/widget/dist/wh.js" data-shop-id="YOUR_WIDGET_KEY" data-position="footer" data-lang="en" async defer ></script>
Step 4: Test
Open your shop and check whether the withdrawal button is visible. Click the button and submit a test withdrawal. You will see the incoming withdrawal in the WiderrufButton dashboard immediately.
Common mistakes during implementation
Avoid these typical mistakes when integrating the withdrawal button:
- Button only on the home page: the withdrawal button must be available on all pages – not just the home page
- Button hidden behind a login: the withdrawal button must not be hidden behind a customer-account login
- Caching issues: make sure your caching plugin (WP Rocket, W3 Total Cache) does not block the script
- Cookie banner blocking the script: the WiderrufButton widget sets no cookies and must therefore not be blocked by the cookie banner
- Missing email confirmation: the automatic acknowledgement of receipt is legally required – WiderrufButton handles this automatically
Conclusion
The withdrawal-button obligation affects your WordPress shop too. Alongside plugin solutions such as Germanized, WiderrufButton is a platform-independent option. Integration takes just a few minutes and works with any theme and plugin.
You can find more about integration on our WordPress integration page and the WooCommerce guide.
More articles
Adding a withdrawal button in Wix – step-by-step guide (2026)
How to add the legally required withdrawal button to your Wix shop – step by step, without code.
Withdrawal button checklist: compliant in 5 steps
Five steps to make your shop compliant with the withdrawal button obligation – compact as a checklist.