addtowallet.co
Create PassFeaturesFree ToolsPricingAPIBlog
Sign InGet Started Free
All guides▾
  • Guide10 reasons why incorporating Mobile Wallet Passes into your mobile strategy is essential
  • Guide5 Reasons why your store needs a wallet pass
  • GuideAdvantages of using Google and Apple wallet pass in businesses
  • GuideBest practices to design an amazing wallet pass
  • GuideBoost Engagement with Interactive Wallet Passes in Magazines
  • GuideConvert Pdf To Pass Using AddToWallet
  • GuideCreate Apple wallet pass for free
  • GuideCreate Apple Wallet passes for Your Business
  • GuideCreate Google wallet pass for free
  • GuideCreating Apple and Google Wallet Passes
  • GuideCreate Wallet Passes with the AddToWallet Zapier Integration
  • GuideDifferences between Apple and Google wallet
  • GuideEnhance audience interaction with wallet passes in Newspapers
  • GuideHidden Form Fields: Dynamic Expiry for Wallet Passes
  • GuideHow Google and Apple Wallet Pass Works
  • How-toHow to Add Amelia Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add an Add to Wallet Button to Your Website
  • How-toHow to Add an Apple Wallet Button Easily
  • How-toHow to Add Bookly Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add Location to Wallet Passes
  • How-toHow to Add Team Members to Your Account
  • How-toHow to Add Simply Schedule Appointments Bookings to Apple Wallet & Google Wallet
  • How-toHow to Add The Events Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to Add LatePoint Appointments to Apple Wallet & Google Wallet
  • How-toHow to Add Sugar Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to configure notifications for Apple & Google wallet passes
  • How-toHow to create a business pass for Apple and Google wallet
  • How-toHow to Create a wallet pass?
  • How-toHow to create a wallet pass using Zapier Integration?
  • How-toHow to create digital Concert Tickets with AddToWallet.co
  • How-toHow to create dynamic passes and manage users in AddToWallet
  • How-toHow To Create Gift Cards in Bulk
  • How-toHow to Create Hair Salon Gift Cards in Minutes
  • How-toCreate Loyalty Wallet Pass Using AddToWallet
  • How-toHow to Create Mobile Wallet Passes Using Google Sheets
  • How-toHow to Create & Scan Dynamic Wallet Passes Using AddToWallet
  • How-toHow To Distribute Google or Apple Wallet Pass
  • How-toHow to duplicate a wallet pass?
  • How-toHow to embed Google Wallet or Apple Wallet button on Shopify
  • How-toHow to embed Google wallet or Apple wallet button on Squarespace
  • How-toHow to embed Google Wallet or Apple Wallet button on Weebly
  • How-toHow to embed Google Wallet or Apple wallet button on Wix
  • How-toHow to embed Google Wallet or Apple Wallet button on WordPress
  • How-toHow to Generate JSON for Apple & Google Wallet Passes
  • How-toHow to generate leads with a Google or Apple Wallet coupon
  • How-toHow to Use AddToWallet Node on N8N
  • How-toHow to integrate make.com with AddToWallet.co?
  • How-toHow to Secure Wallet Passes with Access Code Protection
  • How-toHow to Send Notifications Using Wallet Pass
  • How-toHow to Set Up Custom Domains with AddToWallet
  • How-toHow to Share Wallet Passes Using Flyers
  • How-toHow to test Apple Wallet beacons
  • How-toAddToWallet Order Pass App on Shopify
  • How-toHow to create dynamic wallet pass
  • How-toHow to Use Webhooks with AddToWallet
  • GuideOur Audience Asked for Wallet Tickets AddToWallet.co Delivered
  • GuideCreate Wallet Passes from Form Responses
  • GuideWallet Pass Generator for Google Sheets
  • GuideWallet Passes for Wedding Invitations

How-to

How to embed Google Wallet or Apple Wallet button on WordPress

By AddToWallet Team·Published May 13, 2024·Updated November 25, 2026·3 min read

A wallet button in WordPress is either a link to one public pass, or a plugin that issues a pass per order, booking, or ticket. The snippet on this page is only the public link. It does not know who checked out.

The shared snippet is also documented in add a wallet button on a website.

Static link or a pass per person

You are issuing Put this on the page
One coupon or membership anyone may add A Button block or the Custom HTML snippet, both pointing at that pass link
One Apple Wallet pass per WooCommerce order AddToWallet Order Pass, on the order, not this snippet
One ticket per WooCommerce attendee AddToWallet Event Pass
One pass per appointment Amelia, Bookly, LatePoint, or Simply Schedule Appointments
One pass per event ticket Sugar Calendar, EventON, or Modern Events Calendar

Button block or Custom HTML

Prefer the core Button block when the only job is to open the pass link. It is a normal link, so keyboard users reach it the same way as any other button, and you do not need permission to post raw HTML.

Use Custom HTML when you want the Apple or Google badge image from the snippet. On many hosts only an administrator can save unfiltered HTML. An editor role may see the block stripped on update. Paste it as a user who is allowed to keep script and markup, then view the page logged out.

  1. Edit the page or post.
  2. Add a block. For a text link, choose Buttons and set the URL to the pass link. For the badge, choose Custom HTML.
  3. If you use Custom HTML, paste the snippet and replace buttonUrl with the pass link. The dotted placeholder is not a pass.
  4. Update or publish. Open the page in a private window.
Edit on the WordPress page that will hold the button
Adding a block in the WordPress editor
<script>
window.onload = function() {

  // Paste the pass link here in the button url string
   const buttonUrl="https://app.addtowallet.co/card/........";

  var button = document.getElementById("addToWalletButton");
  var userAgent = window.navigator.userAgent;
  var img = document.getElementById("walletImage");
  if (userAgent.indexOf("Chrome") != -1 && userAgent.indexOf("Safari") != -1 && userAgent.indexOf("Edg") == -1) {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/Add_to_Google_Wallet_badge.svg.png";
  } else if (userAgent.indexOf("Safari") != -1 && userAgent.indexOf("Chrome") == -1) {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/add_to_apple_wallet.png";
  } else {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/Add_to_Google_Wallet_badge.svg.png";
  }
  button.style.background = 'none';
  button.style.border='none';
  button.style.width = '250px';
  button.style.height = '72px';
  img.style.width = '100%';
  img.style.height = '100%';
  button.style.cursor = 'pointer';
  button.onmousedown = function() {
    button.style.transform = 'scale(0.9)';
  }
  button.onmouseup = function() {
    button.style.transform = 'scale(1)';
  }
  button.onclick = function() {
    window.open(buttonUrl, '_blank');
  }
}
</script>
<button id="addToWalletButton">
<img id="walletImage" src="" alt="addToWalletButton"/>
</button>
Pass link copied into buttonUrl in the Custom HTML block
Wallet button on the published WordPress page

What people see

The snippet shows the Apple Wallet badge in Safari and the Google Wallet badge in Chrome. Other browsers get the Google Wallet badge. Activate the control with Enter or Space the same way as a button. If a security plugin removes the script, use the Button block instead of fighting the filter.

Add to Google Wallet badge used for Chrome
Add to Apple Wallet badge used for Safari

Logged-out and both phones

  • Logged-out view shows the button. A preview while you are an admin is not enough.
  • iPhone Safari can add the pass.
  • Android Chrome can save the pass.
  • A WooCommerce thank-you page is still the order or event plugin's job, not this HTML block, unless you deliberately want one shared pass for every buyer.
Create Wallet Pass Now

All guides

  • Guide10 reasons why incorporating Mobile Wallet Passes into your mobile strategy is essential
  • Guide5 Reasons why your store needs a wallet pass
  • GuideAdvantages of using Google and Apple wallet pass in businesses
  • GuideBest practices to design an amazing wallet pass
  • GuideBoost Engagement with Interactive Wallet Passes in Magazines
  • GuideConvert Pdf To Pass Using AddToWallet
  • GuideCreate Apple wallet pass for free
  • GuideCreate Apple Wallet passes for Your Business
  • GuideCreate Google wallet pass for free
  • GuideCreating Apple and Google Wallet Passes
  • GuideCreate Wallet Passes with the AddToWallet Zapier Integration
  • GuideDifferences between Apple and Google wallet
  • GuideEnhance audience interaction with wallet passes in Newspapers
  • GuideHidden Form Fields: Dynamic Expiry for Wallet Passes
  • GuideHow Google and Apple Wallet Pass Works
  • How-toHow to Add Amelia Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add an Add to Wallet Button to Your Website
  • How-toHow to Add an Apple Wallet Button Easily
  • How-toHow to Add Bookly Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add Location to Wallet Passes
  • How-toHow to Add Team Members to Your Account
  • How-toHow to Add Simply Schedule Appointments Bookings to Apple Wallet & Google Wallet
  • How-toHow to Add The Events Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to Add LatePoint Appointments to Apple Wallet & Google Wallet
  • How-toHow to Add Sugar Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to configure notifications for Apple & Google wallet passes
  • How-toHow to create a business pass for Apple and Google wallet
  • How-toHow to Create a wallet pass?
  • How-toHow to create a wallet pass using Zapier Integration?
  • How-toHow to create digital Concert Tickets with AddToWallet.co
  • How-toHow to create dynamic passes and manage users in AddToWallet
  • How-toHow To Create Gift Cards in Bulk
  • How-toHow to Create Hair Salon Gift Cards in Minutes
  • How-toCreate Loyalty Wallet Pass Using AddToWallet
  • How-toHow to Create Mobile Wallet Passes Using Google Sheets
  • How-toHow to Create & Scan Dynamic Wallet Passes Using AddToWallet
  • How-toHow To Distribute Google or Apple Wallet Pass
  • How-toHow to duplicate a wallet pass?
  • How-toHow to embed Google Wallet or Apple Wallet button on Shopify
  • How-toHow to embed Google wallet or Apple wallet button on Squarespace
  • How-toHow to embed Google Wallet or Apple Wallet button on Weebly
  • How-toHow to embed Google Wallet or Apple wallet button on Wix
  • How-toHow to embed Google Wallet or Apple Wallet button on WordPress
  • How-toHow to Generate JSON for Apple & Google Wallet Passes
  • How-toHow to generate leads with a Google or Apple Wallet coupon
  • How-toHow to Use AddToWallet Node on N8N
  • How-toHow to integrate make.com with AddToWallet.co?
  • How-toHow to Secure Wallet Passes with Access Code Protection
  • How-toHow to Send Notifications Using Wallet Pass
  • How-toHow to Set Up Custom Domains with AddToWallet
  • How-toHow to Share Wallet Passes Using Flyers
  • How-toHow to test Apple Wallet beacons
  • How-toAddToWallet Order Pass App on Shopify
  • How-toHow to create dynamic wallet pass
  • How-toHow to Use Webhooks with AddToWallet
  • GuideOur Audience Asked for Wallet Tickets AddToWallet.co Delivered
  • GuideCreate Wallet Passes from Form Responses
  • GuideWallet Pass Generator for Google Sheets
  • GuideWallet Passes for Wedding Invitations
addtowallet.co

AddToWallet is a Mobile Wallet Pass creator to design custom Apple & Google Wallet passes for coupons, deals, gift cards, and loyalty cards.

Use Cases

  • Insurance
  • Fund raising
  • Fan-clubs
  • Restaurant
  • Higher Education

Solutions

  • Loyalty Pass
  • Coupons
  • Gift Cards
  • Event Tickets
  • Google Wallet
  • WalletPassBuilder

Company

  • FAQs
  • Blog
  • Product Updates
  • Privacy policy
  • Terms & conditions
  • Code of conduct
  • ESG statement
  • Trust Center

Free Tools

  • All free tools
  • CSV to Pass Preflight
  • Image to Pass
  • PDF to Pass
  • QR Code Generator
  • Barcode Generator
  • PK Pass Viewer
  • Free membership pass
  • Event check-in rehearsal
© 2026 Hazelnut Ventures LLC