wp-forge / user-last-modified
A WordPress code library for tracking the user last modified date and time.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wp-forge/user-last-modified
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-04 11:48:10 UTC
README
A WordPress code library for tracking the user last modified date and time.
Installation
Install Composer.
In your WordPress plugin or theme directory, run:
composer require wp-forge/user-last-modified
Make sure you have this line of code in your project:
<?php require __DIR__ . '/vendor/autoload.php';
Usage
How to fetch the user last modified date/time:
<?php use WP_Forge\UserLastModified; $user_id = 1; // The id of the user $date_format = 'c'; // Any format that DateTime accepts (e.g. U for unix timestamps, c for ISO8601, etc.) UserLastModified::get( $user_id, $date_format );
Notes
If used within a WordPress plugin or theme, the code will auto-initialize.