The event submission form is currently unavailable. Please ensure:
- The Events Calendar plugin is active
- The Events Calendar Community Events add-on is active
- You are logged in as a trainer
Return to Dashboard
';
}
return $content;
}
/**
* Check authentication for manage-event page
*/
public function check_manage_event_auth() {
// Check if we're on the manage-event page
if (is_page('manage-event') && !is_user_logged_in()) {
// Redirect to login page
wp_redirect(home_url('/community-login/?redirect_to=' . urlencode($_SERVER['REQUEST_URI'])));
exit;
}
}
}
// Initialize the manage event handler
new HVAC_Manage_Event();