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.
| Attribute | Expected value |
|---|---|
| show_period_start | Set it to 1 to the period start date instead of the period name. Default: 0. |
| show_period_end | Set it to 1 to the period end date instead of the period name. Default: 0. |
| date_format | The PHP date format of the period start or end date. You must set the “show_period_start” or “show_period_end » parameter to 1. |
| date | A date (YYYY-MM-DD format, or PHP relative date format). The period this date belongs to will be displayed. |
| until | A date (YYYY-MM-DD format, or PHP relative date format). The period displayed will be extended until this date. |
| raw | Set it to 1 to display the unformatted number. Default: 0. |
Shortcode examples
Display the current period.
[patronstips_period_name]
