WP Manifestindependent plugin directory
manifest / users / tc-logins

TC Login Tracker

Mini WordPress plugin to add an admin page with the users' T&C acceptance details

by Mappek · github.com/matipendino/tc-logins

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/matipendino/tc-logins/archive/refs/heads/main.zip

A WordPress mini plugin that tracks user acceptance of Terms & Conditions (T&C) and logs login activity

Features

  • Tracks users who accept T&C during login
  • Admin page displaying all users with T&C acceptance status
  • Records acceptance date and last login timestamp
  • Export user data to XLSX format
  • Permission-based access (admin only)

Installation

  1. Copy the tc-logins.php file to your WordPress plugins directory (wp-content/plugins/)
  2. Activate the plugin from the WordPress admin dashboard

Usage

Requirements

Your login form must include a checkbox field named accept_terms to track T&C acceptance:

<input type="checkbox" name="accept_terms" required>
I accept the Terms & Conditions

Admin Panel

Once activated, a new T&C Logins menu item appears in the WordPress admin sidebar. This page displays:

  • User display name
  • User email
  • T&C acceptance status
  • Date of first T&C acceptance
  • Date of last login

Export Data

Click the export button on the T&C Logins admin page to download user data as an XLSX file

Technical Requirements

  • WordPress 4.0+
  • PHP with ZipArchive extension (for XLSX export)

Data Tracked

  • accepted_tc - Whether the user accepted T&C (set on first login with checkbox)
  • accepted_tc_date - Timestamp of first T&C acceptance
  • last_login - Timestamp of most recent login

Author

Mappek (Matias Pendino)

License

Apache License Version 2.0