{"id":1965922,"date":"2025-07-04T15:39:37","date_gmt":"2025-07-04T19:39:37","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1965922"},"modified":"2025-07-08T16:42:27","modified_gmt":"2025-07-08T20:42:27","slug":"quick-code-tweaks-for-customizing-event-tickets-and-the-events-calendar","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/quick-code-tweaks-for-customizing-event-tickets-and-the-events-calendar\/","title":{"rendered":"Quick Code Tweaks for Customizing Event Tickets and The Events Calendar"},"content":{"rendered":"\n<p><br>This article provides simple, one-line code snippets that you can add to your website to instantly tweak how <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-event-tickets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Event Tickets<\/a> and <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a> behave or appear. These are perfect for quickly adding to your child theme\u2019s <code>functions.php<\/code> file or using with a <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code Snippets<\/a> plugin.<\/p>\n\n\n\n<p>All examples below are taken from our <a href=\"https:\/\/docs.theeventscalendar.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Developer Docs<\/a>, which contain a full list of available functions, hooks, classes, and methods you can use to tailor your setup further.<\/p>\n\n\n\n<p class=\"has-kb-palette-0-background-color has-background\"><strong><strong>\ud83d\udca1<\/strong>Important Notice:<\/strong> Always remember to test any changes on a <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/how-to-set-up-a-staging-site-for-your-wordpress-website\/\" target=\"_blank\" rel=\"noreferrer noopener\">staging site<\/a> first, if possible, before applying them to your live website!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-display-ticket-sale-start-time\"><strong>Display Ticket Sale Start Time<\/strong><\/h3>\n\n\n\n<p>By default, Event Tickets does not show the ticket sale start time if tickets aren&#8217;t yet available. This tweak ensures that this crucial information is always visible to visitors.<\/p>\n\n\n\n<p><strong>What it does:<\/strong>&nbsp;Allows inclusion of ticket start sale time in unavailability message<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tribe_tickets_unvailable_message_time&#039;, &#039;__return_true&#039; );\n<\/pre><\/div>\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"271\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-06-30-at-23.28.31-1024x271.png\" alt=\"\" class=\"wp-image-1965823\" style=\"width:691px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-06-30-at-23.28.31-1024x271.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-06-30-at-23.28.31-300x79.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-06-30-at-23.28.31-768x203.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-06-30-at-23.28.31.png 1198w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Ref:<\/strong>&nbsp;<a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_tickets_unvailable_message_time\/\" target=\"_blank\" rel=\"noreferrer noopener\">tribe_tickets_unvailable_message_time<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-change-the-orders-page-title-in-the-admin-dashboard\"><strong>Change the &#8220;Orders&#8221; Page Title in the Admin Dashboard<\/strong><\/h3>\n\n\n\n<p>This filter gives you control over the title displayed for the Event Tickets &#8220;Orders&#8221; page within your WordPress admin dashboard.<\/p>\n\n\n\n<p><strong>What it does:<\/strong>&nbsp;Customizes the page title in the admin backend.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tribe_tickets_admin_order_page_page_title&#039;, function( $title ) {\n    return __( &#039;Event Registrations Overview&#039;, &#039;your-text-domain&#039; );\n});\n<\/pre><\/div>\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"467\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-07-01-at-00.22.55.png\" alt=\"\" class=\"wp-image-1965825\" style=\"width:189px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-07-01-at-00.22.55.png 317w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/06\/Screenshot-2025-07-01-at-00.22.55-204x300.png 204w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p><strong>Ref:<\/strong>&nbsp;<a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_tickets_admin_order_page_page_title\/\" target=\"_blank\" rel=\"noreferrer noopener\">tribe_tickets_admin_order_page_page_title<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-customize-the-today-button-label\"><strong>Customize the &#8220;Today&#8221; Button Label<\/strong><\/h3>\n\n\n\n<p>The &#8220;Today&#8221; button on calendar views lets users jump to the current date. You can rename it to something more personalized.<\/p>\n\n\n\n<p><strong>What it does:<\/strong>&nbsp;Changes the label on the calendar\u2019s &#8220;Today&#8221; button.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tec_events_today_button_label&#039;, function( $label ) {\n    return __( &#039;Current Day&#039;, &#039;your-text-domain&#039; );\n});\n<\/pre><\/div>\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"278\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-01-at-22.40.26-1024x278.png\" alt=\"\" class=\"wp-image-1965844\" style=\"width:559px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-01-at-22.40.26-1024x278.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-01-at-22.40.26-300x81.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-01-at-22.40.26-768x208.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-01-at-22.40.26.png 1383w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Ref:<\/strong> <a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tec_events_today_button_label\/\" target=\"_blank\" rel=\"noreferrer noopener\">tec_events_today_button_label<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-customize-the-postponed-event-status-label\"><strong>Customize the &#8220;Postponed&#8221; event status label<\/strong><\/h3>\n\n\n\n<p>Use this tweak to rename the default &#8220;Postponed&#8221; status label shown on events.<\/p>\n\n\n\n<p><strong>What it does:<\/strong> Replaces the &#8220;Postponed&#8221; label with a custom label of your choice.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tec_event_status_postponed_label&#039;, function() { return &#039;Rescheduled&#039;; } );\n<\/pre><\/div>\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"227\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.43.00-1024x227.jpg\" alt=\"\" class=\"wp-image-1965858\" style=\"width:609px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.43.00-1024x227.jpg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.43.00-300x67.jpg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.43.00-768x171.jpg 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.43.00.jpg 1058w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Ref:<\/strong> <a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tec_event_status_postponed_label\/\" target=\"_blank\" rel=\"noreferrer noopener\">tec_event_status_postponed_label<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-a-custom-message-to-google-calendar-descriptions\">Add a Custom Message to Google Calendar Descriptions<\/h3>\n\n\n\n<p>When users add your event to Google Calendar, this tweak appends a custom note to the calendar description.<\/p>\n\n\n\n<p><strong>What it does:<\/strong> Appends custom text to the Google Calendar event details.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tec_views_v2_single_event_gcal_link_parameters&#039;, function( $params ) {\n    $params&#x5B;&#039;details&#039;] .= &quot;(Remember to arrive 15 minutes early!)&quot;;\n    return $params;\n} );\n<\/pre><\/div>\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"276\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.45.27.png\" alt=\"\" class=\"wp-image-1965857\" style=\"width:492px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.45.27.png 852w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.45.27-300x97.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/Screenshot-2025-07-02-at-00.45.27-768x249.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p><strong>Ref:<\/strong> <a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tec_views_v2_single_event_gcal_link_parameters\/\" target=\"_blank\" rel=\"noreferrer noopener\">tec_views_v2_single_event_gcal_link_parameters<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Use These Snippets:<\/h3>\n\n\n\n<p>Add the snippets to your site using either of these methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Theme Method<\/strong>: Paste the code at the end of your child theme\u2019s <code>functions.php<\/code> file.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Plugin Method<\/strong>: Use a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code Snippets<\/a> to add and manage your custom code.<\/li>\n<\/ul>\n\n\n\n<p>You can read more about best practices for implementing snippets <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article provides simple, one-line code snippets that you can add to your website to instantly tweak how Event Tickets and The Events Calendar behave or appear. These are perfect for quickly adding to your child theme\u2019s functions.php file or using with a Code Snippets plugin. All examples below are taken from our Developer Docs,&#8230;<\/p>\n","protected":false},"author":67,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[24],"tags":[25,58,212],"stellar-product-taxonomy":[],"class_list":["post-1965922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","tag-customizations","tag-php","tag-snippets"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"}],"post_tag":[{"value":25,"label":"Customizations"},{"value":58,"label":"PHP"},{"value":212,"label":"snippets"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Marta Kozak","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/marta\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":128,"filter":"raw","term_order":"0"},{"term_id":212,"name":"snippets","slug":"snippets","term_group":0,"term_taxonomy_id":212,"taxonomy":"post_tag","description":"","parent":0,"count":17,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1965922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1965922"}],"version-history":[{"count":3,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1965922\/revisions"}],"predecessor-version":[{"id":1965982,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1965922\/revisions\/1965982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1965922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1965922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1965922"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1965922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}