Creates Wordpress shortcodes for converting between Gregorian and Hijri dates.
This plugin is simply a shortcode wrapper for geniusts/hijri-dates.
- Clone or download the repository to your computer.
- Fetch the dependencies using composer:
$ cd hijri-date-shortcodes
$ composer update
- Upload to your Wordpress plugins folder.
- Now
Prints the current Hijri date and time
[hijri_date]
(default)
[hijri_date rel="Now"]
- Relative
Prints the relative Hijri date
[hijri_date rel="Yesterday"]
[hijri_date rel="Today"]
[hijri_date rel="Tomrrow"]
- Conversion
From Gregorian to Hijri:
[hijri_date gdate="2022-12-31"]
(yyyy-MM-dd)
From Hijri to Gregorian:
[hijri_date hdate="1443-12-30"]
(yyyy-MM-dd)
You can also add this to your own plugin using composer:
composer require jvarn/hijri-dates-shortcodes