https://github.com/aduth/wp-time-remaining
Display a countdown timer in a WordPress admin toolbar
https://github.com/aduth/wp-time-remaining
Last synced: about 1 year ago
JSON representation
Display a countdown timer in a WordPress admin toolbar
- Host: GitHub
- URL: https://github.com/aduth/wp-time-remaining
- Owner: aduth
- Created: 2019-03-10T18:54:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T18:56:31.000Z (over 7 years ago)
- Last Synced: 2025-03-13T22:35:07.568Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Time Remaining
Time Remaining is a WordPress plugin which displays a programmable countdown timer in the user administrative toolbar. This can be useful for transient site provisioners or other temporary theme and plugin preview environments.

## Installation
Download and extract the [zip archive](https://github.com/aduth/g-debugger/archive/master.zip) to a `time-remaining` folder in your WordPress installation `wp-content/plugins`.
Alternatively, as a single-file plugin, it can be downloaded directly and placed within the [`mu-plugins` directory](https://codex.wordpress.org/Must_Use_Plugins) of a site.
```
mkdir -p wp-content/mu-plugins && curl https://raw.githubusercontent.com/aduth/wp-time-remaining/master/index.php > wp-content/mu-plugins/time-remaining.php
```
## Usage
Time Remaining is configured using either an environment variable or site option. In either case, the value should be the [unix time](https://en.wikipedia.org/wiki/Unix_time) in seconds of the expiration.
As an environment variable, export the value as the `TIME_REMAINING_END` variable.
As a site option, set the value as the `time-remaining-end` site option.
## License
Copyright 2019 Andrew Duthie
Released under the [GPLv2 or later License](https://www.gnu.org/licenses/gpl-2.0.html).