jvarn/hijri-dates-shortcodes

Hijri Dates Shortcodes for Wordpress

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

pkg:composer/jvarn/hijri-dates-shortcodes

0.2.3 2022-04-25 11:30 UTC

This package is auto-updated.

Last update: 2025-09-25 18:39:03 UTC


README

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:
$ cd hijri-date-shortcodes
$ composer update
  1. Upload to your Wordpress plugins folder.

Usage

  1. Now
    Prints the current Hijri date and time
    [hijri_date] (default)
    [hijri_date rel="Now"]
  2. Relative
    Prints the relative Hijri date
    [hijri_date rel="Yesterday"]
    [hijri_date rel="Today"]
    [hijri_date rel="Tomrrow"]
  3. 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)

Package

You can also add this to your own plugin using composer:

composer require jvarn/hijri-dates-shortcodes