Beskrivning
Shortcode to return the number of years or days since a certain date.
Usage: [we_time_since y=Y m=M d=D type="T"]
Where:
* Y = the year required
* M = the month (1 – 12) – optional Default = 1
* D = the day (1-31) – optional Default = 1
* T = the type (”year”, ”day”) – optional Default = ”year”
Returns:
The number of years or days since the supplied date or an error message if the date is invalid / no year supplied
Examples
I have worked at Wedepohl Engineering for [we_time_since y=1998 m=1 d=1]
years
I have been sailing for [we_time_since y=2008 m=4]
years
I have been on this journey for [we_time_since y=2020 m=5 d=5 type="day"]
days
Actions
before_we_time_since - Called upon entry to the shortcode. Passed the array of arguments that are passed to the shortcode.
after_we_time_since - Called just before exit of the function. Passed the processed array of arguments from the shortcode.
Filters
we_time_since Called at exit of the function. Passed a string which is the results of the shortcode.
Active Contributors
Installation
- Upload
we-disable-fs
folder to the/wp-content/plugins/
directory - Navigate to the plugins admin page
- Click the Activate link
- That’s all (no further configuration or settings required)
or
- Navigate to the plugins admin page
- Click the Add New button
- Search for
Wedepohl Engineering Time Since
- Click the Install Now button
- Click the Active button
- That’s all (no further configuration or settings required)
Removal Instructions
- Navigate to the plugins admin page
- Click the Deactivate link
- Click the Delete link
- That’s all (plugin doesn’t use the database so there is nothing to cleanup)
Vanliga frågor
-
Settings
-
There are none, just activate and use the shortcode
-
Database
-
This plugin doesn’t use the database at all
-
Does this work with WordPress blocks
-
Yes, just enter the shortcode in the text of a paragraph or heading
-
Does this work with ClassicPress
-
Yes, there is nothing WordPress specific
-
Issues/Bugs/Features
-
- Go to Plugin GitHub Page
- Create an Issue
- I will endevor to resolve issues as soon as time permits
Recensioner
Detta tillägg har inga recensioner.
Bidragsgivare och utvecklare
”Wedepohl Engineering Time Since” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personer”Wedepohl Engineering Time Since” har översatts till 1 språk. Tack till översättarna för deras bidrag.
Översätt ”Wedepohl Engineering Time Since” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
1.0.5
Feb 15, 2022
* Tested with WordPress Version 5.9
1.0.4
Aug 1, 2021
* Tested with WordPress Version 5.8
1.0.3
February 5, 2021
* Tested with WordPress Version 5.6.1
1.0.2
October 24, 2020
* Tested with WordPress Version 5.5.1
1.0.1
June 10, 2020
* Tested with WordPress Version 5.4.2
1.0.0
May 15, 2020
* Initial release