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.