BlogReferenceCivipass

Civipass shortcodes: every shortcode and its attributes

The three shortcodes of the free Civipass and the six of Civipass Pro, with their attributes, what they show, and to whom.

3 min readPerforks

The three shortcodes of the free Civipass in a terminal: civipass_login, civipass_user and civipass_refresh

All Civipass shortcodes render on the server and show nothing to people they do not apply to, so they are safe to leave on a public page. Pages that show a person's own details are marked not to be cached by page caches.

Free plugin

[civipass_login]

The sign-in button. Attributes: label (the button text, used when one button is shown), redirect (an address on this site to go to after the sign-in; default: the current page), service (taxis or otp; default: every configured service). A signed-in, linked person sees You are signed in as … with a sign-out link instead. The same thing exists as the Sign in with TaxisNet block.

[civipass_refresh]

A button that sends a signed-in, linked person to the GSIS and back to fetch their details again. Attribute: label (default Update details from TaxisNet). Empty for anyone else.

[civipass_field]

One of the signed-in person's own details, as plain text. Attribute: name, one of:

nameValue
afmtax number (ΑΦΜ)
afm_maskedtax number with only the last digits shown
firstname, lastname, fullnamethe names (default: fullname)
fathername, mothername, birthyearonly when Also keep father's name, mother's name and year of birth is on

It shows a value only for a session that was made by signing in with the GSIS on a linked account. A password session on the same account gets nothing, so what a form carries is always what TaxisNet said.

Civipass Pro

[civipass_form id="…"]

An application form made under Civipass forms. Attribute: id, the form's ID. For an unpublished or missing form, people who can edit posts see Civipass: this form does not exist or is not published. and others see nothing. After a submission the page shows the reference number.

[civipass_cases]

The signed-in person's own applications ("My file"): reference, date, form, status and the note staff left, with what they submitted under What you submitted. No attributes. Someone not signed in with TaxisNet sees Sign in with TaxisNet to see your applications. and the sign-in button.

[civipass_only] … [/civipass_only]

Wraps content that only people signed in with TaxisNet may see. Everyone else sees This content is only for people signed in with TaxisNet. and, if not signed in at all, the sign-in button. Shortcodes inside it are processed. A whole page is protected from the TaxisNet box in the editor's sidebar, for the post types chosen in Settings › Civipass Pro.

[civipass_user field="…"]

A detail of the signed-in linked person: firstname (default), lastname, afm or afm_masked. Unlike [civipass_field], it answers for any session of a linked account, password sessions included.

[civipass_gemi]

Business search in the General Commercial Registry (ΓΕΜΗ). Attributes: company (a tax number or ΓΕΜΗ number to show one record straight away) and search (1, the default, shows the search form). Needs the ΓΕΜΗ api_key in Settings › Civipass Pro; without it, administrators see a notice and others nothing.

[civipass_my_company]

The ΓΕΜΗ record of the business whose credentials the person signed in with. No attributes. Someone not signed in with TaxisNet is asked to; a tax number that is not a registered business gets Your tax number does not belong to a business registered in the General Commercial Registry.

Elementor

Civipass Pro also has Elementor widgets for the sign-in button, a person's details and their applications, for sites that do not use shortcodes.