AI Verified
Human time difference shortcode
Creates a shortcode for showing the amount of time that has passed since a given date.
PHP
Voted: 0 by 0 user(s)
Use the [time_since] shortcode in some content, providing a date value like so: This company was founded [time_since date="January 1st 2003"] ago. Should allow for a number of different time and date formats. The shortcode will be replaced by some text showing how long ago that date was, e.g. "21 years".
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
25/03/2023
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Found 0 vulnerabilities
0
Please see some snippets below related to this snippet..
General
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
This script allows you to create an advanced and customizable registration form for your WordPress website. It includes fields for entering first name, last name, and email address, with the email add...
General
Unverified
General
AI Verified
Added: 4 months ago
Last Updated: 4 months ago
<p>02-18-24: New add; not yet tested; making available for all; Now you can use the shortcode <code>[word-cloud post_id="123" colors="#464646, #d54e21"]</code> to generate a word cloud based on the sp...
These are some popular snippets from this users codevault..
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 2 weeks ago
Customises the footer text in the WordPress dashboard.
General
AI Verified
Added: 1 year ago
Last Updated: 3 days ago
Ensures that the filenames of all uploaded files are converted to lowercase, for consistency.
WordPress Admin
AI Verified
Added: 8 months ago
Last Updated: 7 months ago
By default, Code Snippets will scroll the page up so that new notices are visible when editing or adding snippets. This snippet disables that functionality for those who prefer a more consistent editi...
Category
Snippet Status