{"id":20710,"date":"2021-11-18T14:07:02","date_gmt":"2021-11-18T13:07:02","guid":{"rendered":"https:\/\/booking-activities.fr\/fr\/docs\/documentation-utilisateur\/demarrer-avec-le-module-prices-and-credits\/display-customers-booking-passes-list-on-the-frontend\/"},"modified":"2026-01-16T11:14:16","modified_gmt":"2026-01-16T10:14:16","slug":"display-customers-booking-passes-list-on-the-frontend","status":"publish","type":"docs","link":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/","title":{"rendered":"Display customers booking passes list on the frontend"},"content":{"rendered":"<p>After <a href=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/create-and-manage-your-customers-booking-passes\/\">creating<\/a>, or <a href=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/sell-your-booking-passes\/\">selling with WooCommerce<\/a>, some booking passes, your customers should be able to find them to check their balance, expiration date, copy their redemption code, etc. You can display their booking passes list very simply using a shortcode:<\/p>\n<ul>\n<li>Go to the post \/ page where you want to display user&#8217;s bookings list in admin panel\n<ul>\n<li><em>Tip: My account page of any subpage is a good choice<\/em>\n \t<\/ul>\n<li>Copy and paste this simple shortcode: <code>[bookingactivities_passes]<\/code> wherever you want on this page\n<li>Go to this page on the frontend and the connected user&#8217;s booking passes list appears\n<\/ul>\n<p><strong>The user must be logged in<\/strong> and have at least one booking, else nothing would appear.<br \/>\nSo it is recommended to <strong>display a login form on the same page<\/strong>, see <a href=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-booking-activities\/display-a-login-registration-form\/\">this docs<\/a>.<\/p>\n<p>The <code>[bookingactivities_passes]<\/code> shortcode has a lot of attributes allowing you to filter the displayed booking passes:<\/p>\n<table class=\"user-booking-list-shortcode-attributes-table\">\n<thead>\n<tr>\n<th>Attribute<\/th>\n<th>Expected value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>id<\/code><\/td>\n<td>The desired booking pass IDs (integers) (comma separated).<\/td>\n<\/tr>\n<tr>\n<td><code>user_id<\/code><\/td>\n<td>The desired user ID (integer), <code>current<\/code>, or <code>all<\/code>.<br \/><em>Default: <code>current<\/code>.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>in__pass_template<\/code><\/td>\n<td>IDs of the booking pass templates (integers) (comma separated).<\/td>\n<\/tr>\n<tr>\n<td><code>active<\/code><\/td>\n<td>Filter inactive booking passes (allowed values: <code>0<\/code>, <code>1<\/code>, ou <code>both<\/code>).<br \/><em>Default: <code>1<\/code> (active passes only).<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>expired<\/code><\/td>\n<td>Filter expired (allowed values: <code>0<\/code>, <code>1<\/code>, ou <code>both<\/code>).<br \/><em>Default: <code>both<\/code>.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>expiration_date<\/code><\/td>\n<td>Expiration date to be taken into account (<code>YYYY-MM-DD<\/code> format, or a <a href=\"https:\/\/www.php.net\/manual\/en\/datetime.formats.php#datetime.formats.relative\" rel=\"noopener noreferrer\" target=\"_blank\">compatible relative format<\/a> such as <code>+7 day<\/code> or <code>last day of this month<\/code>). The <code>expired<\/code> attribute must be <code>0<\/code>.<\/td>\n<\/tr>\n<tr>\n<td><code>events_from<\/code> \/ <code>events_to<\/code><\/td>\n<td>Min and max event start date (<code>YYYY-MM-DD<\/code> format, or a <a href=\"https:\/\/www.php.net\/manual\/en\/datetime.formats.php#datetime.formats.relative\" rel=\"noopener noreferrer\" target=\"_blank\">compatible relative format<\/a> such as <code>+7 day<\/code> or <code>last day of this month<\/code>).<\/td>\n<\/tr>\n<tr>\n<td><code>created_from<\/code> \/ <code>created_to<\/code><\/td>\n<td>Min and max booking pass creation date (<code>YYYY-MM-DD<\/code> format, or a <a href=\"https:\/\/www.php.net\/manual\/en\/datetime.formats.php#datetime.formats.relative\" rel=\"noopener noreferrer\" target=\"_blank\">compatible relative format<\/a> such as <code>+7 day<\/code> or <code>last day of this month<\/code>).<\/td>\n<\/tr>\n<tr>\n<td><code>order_by<\/code><\/td>\n<td>Order the list by data (allowed values: <code>id<\/code>, <code>pass_template_id<\/code>, <code>credits_current<\/code>, <code>credits_total<\/code>, <code>user_id<\/code>, <code>creation_date<\/code>, <code>expiration_date<\/code>, <code>events_from<\/code>, <code>events_to<\/code>, <code>active<\/code>, <code>redeem_code<\/code>) (ordered and comma separated).<br \/><em>Default: <code>id<\/code>.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>order<\/code><\/td>\n<td>Sorting order of the list (allowed values: <code>asc<\/code> or <code>desc<\/code>).<br \/><em>Default: <code>desc<\/code>.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>columns<\/code><\/td>\n<td>Displayed columns (allowed values: <code>id<\/code>, <code>pass_template_id<\/code>, <code>credits_current<\/code>, <code>credits_total<\/code>, <code>user_id<\/code>, <code>creation_date<\/code>, <code>expiration_date<\/code>, <code>events_from<\/code>, <code>events_to<\/code>, <code>active<\/code>, <code>redeem_code<\/code>, <code>actions<\/code>) (ordered and comma separated).<br \/><em>Default: <code>id,title,redeem_code,credits,expiration_date,actions<\/code>.<\/em>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here is an example how to use the attributes:<br \/>\n<code>[bookingactivities_passes active=\"both\" columns=\"title,redeem_code,credits,actions\" order_by=\"active,id\"]<\/code><\/p>\n<p>Now, all that&#8217;s left is for your customers to <a href=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/make-a-reservation-with-a-pass\/\">make use of their booking passes<\/a>!<\/p>","protected":false},"featured_media":0,"parent":608,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","meta":{"_is_vendor_doc":"0","footnotes":""},"doc_tag":[],"class_list":["post-20710","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Display customers booking passes list on the frontend - Booking Activities<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display customers booking passes list on the frontend - Booking Activities\" \/>\n<meta property=\"og:description\" content=\"After creating, or selling with WooCommerce, some booking passes, your customers should be able to find them to check their balance, expiration date, copy their redemption code, etc. You can ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/\" \/>\n<meta property=\"og:site_name\" content=\"Booking Activities\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-16T10:14:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/user-documentation\\\/get-started-with-prices-and-credits-add-on\\\/display-customers-booking-passes-list-on-the-frontend\\\/\",\"url\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/user-documentation\\\/get-started-with-prices-and-credits-add-on\\\/display-customers-booking-passes-list-on-the-frontend\\\/\",\"name\":\"Display customers booking passes list on the frontend - Booking Activities\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#website\"},\"datePublished\":\"2021-11-18T13:07:02+00:00\",\"dateModified\":\"2026-01-16T10:14:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/user-documentation\\\/get-started-with-prices-and-credits-add-on\\\/display-customers-booking-passes-list-on-the-frontend\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/user-documentation\\\/get-started-with-prices-and-credits-add-on\\\/display-customers-booking-passes-list-on-the-frontend\\\/\"]]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/user-documentation\\\/get-started-with-prices-and-credits-add-on\\\/display-customers-booking-passes-list-on-the-frontend\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation utilisateur\",\"item\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/documentation-utilisateur\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Prices and Credits\",\"item\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/docs\\\/documentation-utilisateur\\\/demarrer-avec-le-module-prices-and-credits\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Display customers booking passes list on the frontend\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/\",\"name\":\"Booking Activities\",\"description\":\"Booking plugin for Wordpress websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#organization\",\"name\":\"Booking Activities\",\"url\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/booking-activities.fr\\\/wp-content\\\/uploads\\\/Logo_Booking_Activities_light_bg.png\",\"contentUrl\":\"https:\\\/\\\/booking-activities.fr\\\/wp-content\\\/uploads\\\/Logo_Booking_Activities_light_bg.png\",\"width\":512,\"height\":83,\"caption\":\"Booking Activities\"},\"image\":{\"@id\":\"https:\\\/\\\/booking-activities.fr\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Display customers booking passes list on the frontend - Booking Activities","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/","og_locale":"en_US","og_type":"article","og_title":"Display customers booking passes list on the frontend - Booking Activities","og_description":"After creating, or selling with WooCommerce, some booking passes, your customers should be able to find them to check their balance, expiration date, copy their redemption code, etc. You can ...","og_url":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/","og_site_name":"Booking Activities","article_modified_time":"2026-01-16T10:14:16+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/","url":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/","name":"Display customers booking passes list on the frontend - Booking Activities","isPartOf":{"@id":"https:\/\/booking-activities.fr\/en\/#website"},"datePublished":"2021-11-18T13:07:02+00:00","dateModified":"2026-01-16T10:14:16+00:00","breadcrumb":{"@id":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/"]]}]},{"@type":"BreadcrumbList","@id":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/display-customers-booking-passes-list-on-the-frontend\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/booking-activities.fr\/en\/"},{"@type":"ListItem","position":2,"name":"Documentation utilisateur","item":"https:\/\/booking-activities.fr\/en\/docs\/documentation-utilisateur\/"},{"@type":"ListItem","position":3,"name":"Prices and Credits","item":"https:\/\/booking-activities.fr\/en\/docs\/documentation-utilisateur\/demarrer-avec-le-module-prices-and-credits\/"},{"@type":"ListItem","position":4,"name":"Display customers booking passes list on the frontend"}]},{"@type":"WebSite","@id":"https:\/\/booking-activities.fr\/en\/#website","url":"https:\/\/booking-activities.fr\/en\/","name":"Booking Activities","description":"Booking plugin for Wordpress websites","publisher":{"@id":"https:\/\/booking-activities.fr\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/booking-activities.fr\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/booking-activities.fr\/en\/#organization","name":"Booking Activities","url":"https:\/\/booking-activities.fr\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/booking-activities.fr\/en\/#\/schema\/logo\/image\/","url":"https:\/\/booking-activities.fr\/wp-content\/uploads\/Logo_Booking_Activities_light_bg.png","contentUrl":"https:\/\/booking-activities.fr\/wp-content\/uploads\/Logo_Booking_Activities_light_bg.png","width":512,"height":83,"caption":"Booking Activities"},"image":{"@id":"https:\/\/booking-activities.fr\/en\/#\/schema\/logo\/image\/"}}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/20710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/comments?post=20710"}],"version-history":[{"count":5,"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/20710\/revisions"}],"predecessor-version":[{"id":39275,"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/20710\/revisions\/39275"}],"up":[{"embeddable":true,"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/608"}],"next":[{"title":"[:fr]G\u00e9n\u00e9rer des bons PDF (cartes cadeaux) \u00e0 partir des passes de r\u00e9servations[:en]Generate PDF vouchers (gift cards) from booking passes[:]","link":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/generate-pdf-vouchers-gift-cards-from-booking-passes\/","href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/21024"}],"prev":[{"title":"[:fr]Cr\u00e9er et g\u00e9rer les passes de r\u00e9servations de vos clients[:en]Create and manage your customers' booking passes[:]","link":"https:\/\/booking-activities.fr\/en\/docs\/user-documentation\/get-started-with-prices-and-credits-add-on\/create-and-manage-your-customers-booking-passes\/","href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/docs\/3488"}],"wp:attachment":[{"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/media?parent=20710"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/booking-activities.fr\/en\/wp-json\/wp\/v2\/doc_tag?post=20710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}