Notification email to direct admin to backend to approve event

Home Forums Calendar Products Community Events Notification email to direct admin to backend to approve event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #988869
    eastlife
    Participant

    I’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 “Review Event” on the email as this just takes them to the front end with the event and a submit new event button – which is confusing because they aren’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!

    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.

    This topic seemed to get close to what I’m after, but I’m unsure how to edit the code. At the moment I think this line needs to change:

    <h4><?php echo $this->getEditButton( $post, sprintf( __( 'Review %s', 'tribe-events-community' ), $events_label_singular ) ); 
    if ( $post->post_status == 'publish' ) { 
    ?> | <a href="<?php echo esc_url( get_permalink( $tribe_event_id ) ); ?>"><?php printf( __( 'View %s', 'tribe-events-community' ), $events_label_singular ); ?></a><?php 
    } 
    ?></h4>

    I know I need to use get_edit_post_link but I’m not sure where.

    Thanks.

    #989078
    Barry
    Member

    Hi @eastlife,

    Is the alternative description/code example by Brian provided here any more useful to you?

    #989262
    eastlife
    Participant

    Yep, that’s exactly what I was look for. Cheers!
    You may close this thread now.

    #989287
    Barry
    Member

    Thanks – and please just open new topics as needed if anything else crops up 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Notification email to direct admin to backend to approve event’ is closed to new replies.