{"id":1951894,"date":"2022-02-07T11:23:04","date_gmt":"2022-02-07T16:23:04","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=tribe-knowledgebase&#038;p=1951894"},"modified":"2022-02-07T11:23:44","modified_gmt":"2022-02-07T16:23:44","slug":"integrating-ultimate-member-with-the-events-calendar","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/integrating-ultimate-member-with-the-events-calendar\/","title":{"rendered":"Integrating Ultimate Member with The Events Calendar"},"content":{"rendered":"\n<p>With the <a href=\"https:\/\/wordpress.org\/plugins\/ultimate-member\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ultimate Member<\/a> plugin, it&#8217;s possible to restrict event content for specific user roles. You can use a shortcode provided by the Ultimate Member plugin to make this happen. We&#8217;ll show you how to set this integration up in this article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-use-a-shortcode\">Use a shortcode<\/h2>\n\n\n\n<p>Ultimate Member supplies shortcodes that you can use to restrict event content for specific user roles. This way, only certain roles will have access to your calendar and tickets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-show-content-to-specific-roles\">Show content to specific roles<\/h3>\n\n\n\n<p>Use the following shortcode to display your event content to specific roles:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n   &#x5B;um_show_content roles=&#039;member&#039;] &lt;!-- insert content here --&gt; &#x5B;\/um_show_content]\n<\/pre><\/div>\n\n\n<p><strong>Note:<\/strong> You can add multiple target roles, use &#8216;,&#8217; e.g. <code>&nbsp;[um_show_content roles='member,candidates,pets']<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-hide-content-from-specific-roles\">Hide content from specific roles<\/h3>\n\n\n\n<p>Use the following shortcode to hide your event content from specific roles:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n     &#x5B;um_show_content not=&#039;member&#039;] &lt;!-- insert content here --&gt; &#x5B;\/um_show_content]\n\n<\/pre><\/div>\n\n\n<p><strong>Note:<\/strong> You can add multiple target roles, use &#8216;,&#8217; e.g. <code>&nbsp;[um_show_content roles='member,candidates,pets']<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-limit-access-to-calendar-content\">Limit access to calendar content<\/h2>\n\n\n\n<p>To limit access to calendar content, like events, you&#8217;ll first want to check that option in the settings under <strong>Ultimate Member &gt; Settings<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/02\/Screen-Shot-2022-02-07-at-2.06.40-PM.png\" alt=\"Ultimate Member settings\" class=\"wp-image-1951895\"\/><\/figure>\n\n\n\n<p>Now head over to one of your single event pages on the backend. You&#8217;ll see this nifty new option at the bottom of the page to restrict content to your event page. Check the box and select who you&#8217;d like to see the event content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/02\/Screen-Shot-2022-02-07-at-2.08.54-PM.png\" alt=\"Ultimate Member: Content Restriction\" class=\"wp-image-1951896\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-members-only-tickets\">Members-only tickets<\/h2>\n\n\n\n<p>You can restrict access to tickets as well with Ultimate Member. To do this, you&#8217;ll need to wrap a Ticket Block in the Ultimate Member shortcode provided above. So it&#8217;ll look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/02\/Screen-Shot-2022-02-07-at-2.21.50-PM.png\" alt=\"Hide ticket content with Ultimate Member\" class=\"wp-image-1951898\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>With the Ultimate Member plugin, it&#8217;s possible to restrict event content for specific user roles. You can use a shortcode provided by the Ultimate Member plugin to make this happen. We&#8217;ll show you how to set this integration up in this article. Use a shortcode Ultimate Member supplies shortcodes that you can use to restrict&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","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":[46,77,88],"tags":[76],"stellar-product-taxonomy":[155,156],"class_list":["post-1951894","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integrations","category-shortcodes","category-tickets","tag-shortcodes","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":46,"label":"Integrations"},{"value":77,"label":"Shortcodes"},{"value":88,"label":"Ticketing"}],"post_tag":[{"value":76,"label":"Shortcodes"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":46,"name":"Integrations","slug":"integrations","term_group":0,"term_taxonomy_id":46,"taxonomy":"category","description":"","parent":0,"count":115,"filter":"raw","term_order":"0","cat_ID":46,"category_count":115,"category_description":"","cat_name":"Integrations","category_nicename":"integrations","category_parent":0},{"term_id":77,"name":"Shortcodes","slug":"shortcodes","term_group":0,"term_taxonomy_id":77,"taxonomy":"category","description":"","parent":61,"count":16,"filter":"raw","term_order":"0","cat_ID":77,"category_count":16,"category_description":"","cat_name":"Shortcodes","category_nicename":"shortcodes","category_parent":61},{"term_id":88,"name":"Ticketing","slug":"tickets","term_group":0,"term_taxonomy_id":88,"taxonomy":"category","description":"","parent":61,"count":83,"filter":"raw","term_order":"0","cat_ID":88,"category_count":83,"category_description":"","cat_name":"Ticketing","category_nicename":"tickets","category_parent":61}],"tag_info":[{"term_id":76,"name":"Shortcodes","slug":"shortcodes","term_group":0,"term_taxonomy_id":76,"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\/1951894","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1951894"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1951894\/revisions"}],"predecessor-version":[{"id":1955880,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1951894\/revisions\/1955880"}],"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=1951894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1951894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1951894"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1951894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}