Title: Wedepohl Engineering Time Since
Author: Martin Wedepohl
Published: <strong>2020 年 5 月 18 日</strong>
Last modified: 2022 年 2 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/we-time-since.svg)

# Wedepohl Engineering Time Since

 作者：[Martin Wedepohl](https://profiles.wordpress.org/mwedepohl/)

[下载](https://downloads.wordpress.org/plugin/we-time-since.zip)

 * [详情](https://cn.wordpress.org/plugins/we-time-since/#description)
 * [评价](https://cn.wordpress.org/plugins/we-time-since/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/we-time-since/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/we-time-since/#developers)

 [支持](https://wordpress.org/support/plugin/we-time-since/)

## 描述

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

  [Martin Wedepohl](https://profiles.wordpress.org/mwedepohl/) (Development)
  
  ## 安装
  
   1. Upload `we-disable-fs` folder to the `/wp-content/plugins/` directory
   2. Navigate to the plugins admin page
   3. Click the **Activate** link
   4. That’s all (no further configuration or settings required)
  or
   1. Navigate to the plugins admin page
   2. Click the **Add New** button
   3. Search for `Wedepohl Engineering Time Since`
   4. Click the **Install Now** button
   5. Click the **Active** button
   6. That’s all (no further configuration or settings required)
  
  #### Removal Instructions
  
   1. Navigate to the plugins admin page
   2. Click the **Deactivate** link
   3. Click the **Delete** link
   4. That’s all (plugin doesn’t use the database so there is nothing to cleanup)
  
  ## 常见问题
  
  
  ### 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
  
   1. Go to [Plugin GitHub Page](https://github.com/martin-wedepohl/we-time-since)
   2. Create an Issue
   3. I will endevor to resolve issues as soon as time permits
  
  ## 评价
  
  此插件暂无评价。
  
  ## 贡献者及开发者
  
  「Wedepohl Engineering Time Since」是开源软件。 以下人员对此插件做出了贡献。
  贡献者
   *   [ Martin Wedepohl ](https://profiles.wordpress.org/mwedepohl/)
  「Wedepohl Engineering Time Since」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/we-time-since/contributors)
  为本插件所做的贡献。
  [帮助将「Wedepohl Engineering Time Since」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/we-time-since)
  
  ### 对开发感兴趣吗?
  
  您可以[浏览代码](https://plugins.trac.wordpress.org/browser/we-time-since/)，查看
  [SVN仓库](https://plugins.svn.wordpress.org/we-time-since/)，或通过[RSS](https://plugins.trac.wordpress.org/log/we-time-since/?limit=100&mode=stop_on_copy&format=rss)
  订阅[开发日志](https://plugins.trac.wordpress.org/log/we-time-since/)。
  
  ## 更新日志
  
  
  #### 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
  
  ## 额外信息
  
   *  版本 **1.0.5**
   *  最后更新：**4 年前**
   *  活跃安装数量 **不到10**
   *  WordPress 版本 ** 4.9 或更高版本 **
   *  已测试的最高版本为 **5.9.13**
   *  PHP 版本 ** 5.6 或更高版本 **
   *  语言
   * [English (US)](https://wordpress.org/plugins/we-time-since/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/we-time-since/)
     和 [Spanish (Spain)](https://es.wordpress.org/plugins/we-time-since/).
   *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/we-time-since)
   * 标签
   * [days](https://cn.wordpress.org/plugins/tags/days/)[span](https://cn.wordpress.org/plugins/tags/span/)
     [time](https://cn.wordpress.org/plugins/tags/time/)[years](https://cn.wordpress.org/plugins/tags/years/)
   *  [高级视图](https://cn.wordpress.org/plugins/we-time-since/advanced/)
  
  ## 评级
  
  尚未提交反馈。
  [Your review](https://wordpress.org/support/plugin/we-time-since/reviews/#new-post)
  [查看全部评论](https://wordpress.org/support/plugin/we-time-since/reviews/)
  
  ## 贡献者
  
   *   [ Martin Wedepohl ](https://profiles.wordpress.org/mwedepohl/)
  
  ## 支持
  
  有话要说吗？是否需要帮助？
   [查看支持论坛](https://wordpress.org/support/plugin/we-time-since/)
  
  ## 捐助
  
  您愿意支持这个插件的发展吗?
   [ 捐助此插件 ](https://paypal.me/martinwedepohl)