gwp_date_updated
The gwp_date_updated Merge Tag returns a modified date time relative to the date time when the entry was last updated in the desired format.
Options
- modify (optional): For available date time modifications, see https://www.php.net/manual/en/datetime.formats.relative.php.
- format (optional, default =’Y-m-d H:i:s’): For an explanation of available format options, see https://www.php.net/manual/en/datetime.format.php. Regular character can be escaped using ”. For example: ‘d/m/Y\ \a\t\ H:i:s’.
- timezone (optional, default is WordPress timezone setting): For available timezones, see https://www.php.net/manual/en/timezones.php.
Examples
{gwp_date_updated modify="first day of next month" format="d-m-Y"}
When the entry is updated on 2021-03-30 12:21:23 this returns ’01-04-2021′
{gwp_date_updated format="d/m/Y\ \a\t\ H:i:s"}
When the entry is updated on 2021-03-30 12:21:23 this returns ’30-03-2021 at 12:21:23′
Last updated: 30-10-2021