Hijri Date Shortcodes
Wordpress shortcodes to convert between Gregorian and Hijri dates
by Jeremy Varnham · github.com/saudi-adhd-society/hijri-date-shortcodes · website
★ 1stars
5composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/saudi-adhd-society/hijri-date-shortcodes/archive/refs/heads/main.zipAlso on Packagist as jvarn/hijri-dates-shortcodes:
composer require jvarn/hijri-dates-shortcodesFrom the readme
Hijri date shortcodes
Creates Wordpress shortcodes for converting between Gregorian and Hijri dates.
This plugin is simply a shortcode wrapper for geniusts/hijri-dates.
Installation
1. Clone or download the repository to your computer.
2. Fetch the dependencies using composer:
3. Upload to your Wordpress plugins folder.
Usage
1. Now\
Prints the current Hijri date and time\
[hijridate] (default)\
[hijridate rel="Now"]
2. Relative\
Prints the relative Hijri date\
[hijridate rel="Yesterday"]\
[hijridate rel="Today"]\
[hijridate rel="Tomrrow"]
3. Conversion\
From Gregorian to Hijri:\
[hijridate gdate="2022-12-31"] (yyyy-MM-dd)\
From Hijri to Gregorian:\
[hijridate hdate="1443-12-30"] (yyyy-MM-dd)
Package
You can also add this to your own plugin using composer:
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 0.2.3 | Apr 12, 2022 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.