跳到内容

DeMomentSomTres Night and Day

v1.0.1

Marc Queralt i Bassa · 2013年3月24日 上架

Provides the shortcode dms3nad allowing to show contents only during an specific time frame specified in the shortcode paramenters.

正在使用
10 以下
评分
暂无
累计下载
1 万
最近更新
2024年11月25日
需要 WordPress 3.5+已测试到 3.9.40

A customer of DeMomentSomTres required us to show a picture of its building depending of the moment of the day in its web.

We build that shortcode that helps on doing this task.

You only have to use [dms3nad start=”hh:mm” end=”hh:mm”]Content to show[/dms3nad].

For instance to show the sentence “night” from midnight until 7:00 and “day” the rest of the day, the code should look like:

[dms3nad start="00:00" end="07:00"]Night[/dms3nad]
[dms3nad start="07:00" end="23:59"]Day[/dms3nad]

Note: times are based on server time

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums