Title: Do We Have Test Kits
Author: Colin M Tomele
Published: <strong>2022 年 1 月 20 日</strong>
Last modified: 2022 年 1 月 20 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/do-we-have-testing-kits.svg)

# Do We Have Test Kits

 作者：[Colin M Tomele](https://profiles.wordpress.org/maniacalv/)

[下载](https://downloads.wordpress.org/plugin/do-we-have-testing-kits.zip)

 * [详情](https://cn.wordpress.org/plugins/do-we-have-testing-kits/#description)
 * [评价](https://cn.wordpress.org/plugins/do-we-have-testing-kits/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/do-we-have-testing-kits/#developers)

 [支持](https://wordpress.org/support/plugin/do-we-have-testing-kits/)

## 描述

This plugin creates a large button on the Dashboard that lets any logged in users(
with read persmission) to change a large button.

Each state of the button reflects if you currently have free COVID testing kits.

For Administrators (manage_options permissions) there is a page where they can modify
two content boxes.

On any page, the content from the selected box will display using the [dwhtk] shortcode.

The button uses AJAX and immediately updates the site content.

The shortcode [dwhtktime] can be used on pages, posts, and even in the content boxes
of the plugin itself.

** Time formatting **
 Use the following option in the shortcode to change the display
format of the time.

    ```
    [dwhtktime format=1]
    Updated: 2022-01-19 01:02 pm

    [dwhtktime format=2]
    Updated: Wednesday, 19th of January 2022, 01:02 PM

    [dwhtktime format=3]
    Updated: 01-19-2022, 01:02 pm
    ```

## 屏幕截图

 * [[
 * This is the Dashboard Widget, and is available to everyone with read access. 
   This is an AJAX switch that immediately changes the content on the live site 
   between the two content boxes on the settings page
 * [[
 * The settings page lets you change the status as well as change the content that
   is presented.
 * [[
 * This shortcode is all you need. It will be replaced on the page with whatever
   is in the matching content box on the settings page.

## 常见问题

### Why did you make this?

Our library gives out free testing kits, but it’s hard to keep the site updated 
if we run out during times a content editor isn’t available. This plugin gives editors
a way to prepare content that is controlled by a simple switch that most users can
access.

### How do I display the content?

Use the shortcode [dwhtk], and this will be replaced by whichever content box is
currently selected.

### How do I display the time the content was last updated?

The [dwhtktime] shortcode shows the current time. There are three formats and it
can be used inside the content boxes on the settings page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Do We Have Test Kits」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Colin M Tomele ](https://profiles.wordpress.org/maniacalv/)

[帮助将「Do We Have Test Kits」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/do-we-have-testing-kits)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/do-we-have-testing-kits/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/do-we-have-testing-kits/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/do-we-have-testing-kits/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/do-we-have-testing-kits/)。

## 更新日志

#### 2.5

 * Changed screenshots to lowercase extensions

#### 2.4

 * Added screenshots.
 * Fixed the settings page button by adding in the nonce (which was on the widget
   switch).

#### 2.2

 * Fixed text domain

#### 2.1

 * Fixed version mismatch. Added nonce to slider and some error checking so an error
   will reset the user’s button to the correct status.

#### 2.0

 * Added shortcode for showing what time the switch was flipped. Includes 3 formats.

#### 1.0

 * First version

## 额外信息

 *  版本 **2.6**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/do-we-have-testing-kits/)
 * 标签
 * [covid](https://cn.wordpress.org/plugins/tags/covid/)[dashboard](https://cn.wordpress.org/plugins/tags/dashboard/)
   [test](https://cn.wordpress.org/plugins/tags/test/)
 *  [高级视图](https://cn.wordpress.org/plugins/do-we-have-testing-kits/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/do-we-have-testing-kits/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/do-we-have-testing-kits/reviews/)

## 贡献者

 *   [ Colin M Tomele ](https://profiles.wordpress.org/maniacalv/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/do-we-have-testing-kits/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ko-fi.com/maniacalv)