Period name

The Period name shortcode displays a period name you can format.

Shortcode options

You can use the [patronstips_period_name] shortcode to display a period.

AttributeExpected value
show_period_startSet it to 1 to the period start date instead of the period name. Default: 0.
show_period_endSet it to 1 to the period end date instead of the period name. Default: 0.
date_formatThe PHP date format of the period start or end date. You must set the “show_period_start” or “show_period_end » parameter to 1.
dateA date (YYYY-MM-DD format, or PHP relative date format). The period this date belongs to will be displayed.
untilA date (YYYY-MM-DD format, or PHP relative date format). The period displayed will be extended until this date.
rawSet it to 1 to display the unformatted number. Default: 0.

Shortcode examples

Display the current period.

[patronstips_period_name]

Leave a Comment

Scroll to Top