PHP code example of wp-forge / user-last-modified

1. Go to this page and download the library: Download wp-forge/user-last-modified library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-forge / user-last-modified example snippets







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 );