{"id":988869,"date":"2015-07-22T08:04:43","date_gmt":"2015-07-22T15:04:43","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/"},"modified":"2015-07-23T06:05:19","modified_gmt":"2015-07-23T13:05:19","slug":"notification-email-to-direct-admin-to-backend-to-approve-event","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/","title":{"rendered":"Notification email to direct admin to backend to approve event"},"content":{"rendered":"<p>I&#8217;m using Community Events to allow logged in users to submit events and inform them their submission will be held for approval. An email is then sent to site admins to inform them of a new event and direct them to approve it.<\/p>\n<p>The problem comes when they click &#8220;Review Event&#8221; on the email as this just takes them to the front end with the event and a submit new event button &#8211; which is confusing because they aren&#8217;t submitting a new event they are approving a draft event. Also if they click on this button they get my cutom message telling them the event is pending approval!<\/p>\n<p>Instead my proposed solution is to change the submission email so it sends the admin to the backend so they can approve the event from there.<\/p>\n<p>This <a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notify-events-author-by-email-after-his-event-is-approved-by-admininstrator\/\">topic<\/a> seemed to get close to what I&#8217;m after, but I&#8217;m unsure how to edit the code. At the moment I think this line needs to change:<\/p>\n<pre><code>&lt;h4&gt;&lt;?php echo $this-&gt;getEditButton( $post, sprintf( __( &#039;Review %s&#039;, &#039;tribe-events-community&#039; ), $events_label_singular ) ); \nif ( $post-&gt;post_status == &#039;publish&#039; ) { \n?&gt; | &lt;a href=&quot;&lt;?php echo esc_url( get_permalink( $tribe_event_id ) ); ?&gt;&quot;&gt;&lt;?php printf( __( &#039;View %s&#039;, &#039;tribe-events-community&#039; ), $events_label_singular ); ?&gt;&lt;\/a&gt;&lt;?php \n} \n?&gt;&lt;\/h4&gt;<\/code><\/pre>\n<p>I know I need to use get_edit_post_link but I&#8217;m not sure where.<\/p>\n<p>Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-988869","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Notification email to direct admin to backend to approve event -<\/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:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Notification email to direct admin to backend to approve event -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m using Community Events to allow logged in users to submit events and inform them their submission will be held for approval. An email is then sent to site admins to inform them of a new event and direct them to approve it. The problem comes when they click &#8220;Review Event&#8221; on the email as [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-23T13:05:19+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/\",\"name\":\"Notification email to direct admin to backend to approve event -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-07-22T15:04:43+00:00\",\"dateModified\":\"2015-07-23T13:05:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Notification email to direct admin to backend to approve event\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Notification email to direct admin to backend to approve event -","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:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/","og_locale":"en_US","og_type":"article","og_title":"Notification email to direct admin to backend to approve event -","og_description":"I&#8217;m using Community Events to allow logged in users to submit events and inform them their submission will be held for approval. An email is then sent to site admins to inform them of a new event and direct them to approve it. The problem comes when they click &#8220;Review Event&#8221; on the email as [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/","article_modified_time":"2015-07-23T13:05:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/","name":"Notification email to direct admin to backend to approve event -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-07-22T15:04:43+00:00","dateModified":"2015-07-23T13:05:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notification-email-to-direct-admin-to-backend-to-approve-event\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Notification email to direct admin to backend to approve event"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/988869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/988869\/revisions"}],"predecessor-version":[{"id":989075,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/988869\/revisions\/989075"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=988869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}