Turn More Visitors Into
Customers—Now For Less

  1. 1Instant savings.
  2. 2Easy setup.
  3. 3Real impact.

View Special Pricing Offer

View Categories

Age Verification Shortcode

Overview #

The  Age Verification Modals (AVM) plugin extension gives you the shortcode [pum_age_form] to insert the Age Verification Modals content. You can add the shortcode from the Popup menu with the Popup Maker shortcode button

The shortcode creates either a set of entry/exit buttons or a birthdate form to display inside a popup.  Plugin users must provide their own content to the popup to give the form’s context and meaning.  The shortcode works in tandem with the Age Verification and Failed Age Redirect triggers provided by the AVM plugin. 

This document describes how to add, edit, and delete the shortcode. The shortcode options are set in the Age Verification Form box when adding or editing the shortcode.  


The Age Verification Form Shortcode #

Add Shortcode #

File Ycpm5Ldkes

1) From the WordPress Admin, open the Popup Editor by selecting either the Add New button, or an existing popup from the All Popups page. 

2) Navigate to the Popup Maker shortcode button in the Editor menu Visual Tab. Select the button to display a menu of Popup Maker shortcode options.
3) Select the Visual Tab option.
4) A popup option settings box labeled Visual Tab will display in front of the Editor.  

Edit Shortcode #

File
  • In the Editor Visual Tab, select the shortcode form to focus on it in the Editor. In the example above, the shortcode displays a set of inline buttons labeled Enter/ Exit. The alternate option is a birth date form that accepts data input as ‘MMDDYYYY’. 
  • Select the ‘pencil’ icon to reopen the Age Verification Form box for editing. 
  • In the Age Verification Form box, select the Save button to preserve changes to the shortcode options.
  • In the Publish box (to the right of the Editor), select Update to save changes to the popup.

Delete Shortcode #

File Keul2B3Q3I
  • In the Editor Visual Tab, select the shortcode form to focus on it in the Editor. 
  • Select the X icon to remove the shortcode. 
  • In the Publish box (to the right of the Editor), select Update to save changes to the popup.

Set Shortcode in the Visual Tab Box #

General option settings tab #

File Hah4Ce1D0E

1.  Type (menu option): The shortcode provides 2 types of age verification methods: a set of Enter/Exit buttons or a Birthdate form. Default: Exit/Enter

The Enter button allows direct entry to the site, while the Exit button redirects to an Exit URL.  The button text can be edited. 

The Birthdate option displays a required field to enter a date of birth. The visitor input is compared to the value preset in the Required Age field. If the entered birthdate is equal to or greater than the Required Age, the visitor is shown the site. If the birthdate is less than the Required Age, the visitor is redirected to an Exit URL. 

Shortcode attributes (visible from the editor Text tab):

  • The type of age verification you want in your popup.
  • Options include Enter/Exit and Birthdate.
[pum_age_form type="enterexit | birthdate"]

2.  Required Age (integer): The age required to enter the website.  When the Type option is set to Birthdate, the shortcode checks that the visitor’s Required Age is equal to or greater than the set value.  Default: 21.

Shortcode attributes (visible from the editor Text tab):

  • The minimum age required to enter the web site. An integer value.
[pum_age_form required_age="{integer}"]

3.  Enable lockout? (checkbox): This feature applies only to the Birthdate option described above.

When the checkbox is unchecked, a visitor is allowed only one attempt to submit their birthdate. If the visitor’s age is less than the Required Age, they will be redirected to the Exit URL.  

When the checkbox is checked, a visitor may submit their birth date up to the number of attempts set in the Lockout Try Count field.  Default: ‘unchecked’ (visitor allowed one attempt to submit their birthdate).

Shortcode attributes (visible from the editor Text tab):

  • Enable site lockout when the Birthdate option is selected.
  • Default: ‘unchecked’ (only one attempt allowed to submit birth date that meets Required Age).
[pum_age_form lockout_enabled]

4.  Lockout Try Count (integer): The number of verification attempts allowed before a visitor is locked out of the site. The Enable lockout? checkbox must be checked to use this feature. Default value: 3.

Shortcode attributes (visible from the editor Text tab):

  • Age verification attempt lockout count. Integer value.
  • The feature applies only when you select the Birthdate type.
  • The Enable lockout? checkbox must be checked to use this feature.
[pum_age_form lockout_count="{integer}"]

5.  Exit URL (string): Enter a URL to redirect a visitor to if they select the Exit button.  Applies to both Enter/Exit and Birthdate types.  Default URL: http://www.disney.com.

Shortcode attributes (visible from the editor Text tab):

  • Redirection URL. Applies to Enter/Exit and Birthdate type.
  • Default URL: “http://www.disney.com”.
[pum_age_form exit_url="{http://www.disney.com}"]

Appearance option settings tab #

File Men6Amvqil

1.  Form Layout (menu option): This option positions the Enter/Exit (EE) buttons and Birthdate (BD) field both horizontally and vertically within the popup. Menu options include: 

  • Standard 
  • Vertical
  • Inline 
  • Stacked

Default: Standard.

The following table summarizes the button and field positions within the popup. 


Form Layout Option
Enter/Exit
Button Position
Birthdate
Field Position
Standard horizontal inline horizontal inline
Vertical vertical stack horizontal inline
Inline horizontal inline horizontal inline
Stacked vertical stack horizontal inline

Shortcode attributes (visible from the editor Text tab):

  • Layout the form in either a horizontal or vertical position.
  • Default: ‘Standard’. No shortcode attribute is set when ‘Standard’ is selected.
[pum_age_form form_layout="vertical | inline | stacked"]

2.  Form Alignment (menu option): This option positions the Enter/Exit buttons and Birthdate field within the form layout set above.  Menu options include:

  • Center
  • Left
  • Right
  • Default: Center

Note:  As of version 1.2.4 of the AVM plugin, the Birthdate field does not reposition itself in the Popup Editor when form alignment is set to either ‘left’ or ‘right’. However, the field does render properly when the popup is viewed on the front end.    

Shortcode attributes (visible from the editor Text tab):

  • Align the form within the previously selected position.
  • Default: Center
[pum_age_form form_alignment="center | left | right"]

3.  Disable HTML 5 Date Input (checkbox): This feature applies only to the Birthdate type option chosen from the General option tab.

Some browsers do not support the HTML5 date input into form fields (Internet Explorer, IE Mobile, Safari, older versions of Firefox).  This feature disables the HTML5 date input for browsers that support this feature.  Default: ‘unchecked’; feature is enabled by default.

File Zmymuexnmf

Figure 3a. The Birthdate field type as it appears in the Popup Editor. Use this field type for browsers that support the HTML5 date input  (checkbox is ‘unchecked’).

File Clfizhdcry

Figure 3b. The Birthdate field type as it appears in the Popup Editor. Use this field type for browsers that do not support the HTML5 date input (checkbox is  ‘checked’  ).

Shortcode attributes (visible from the editor Text tab):

  • Disable the date input field for browsers that do not support HTML5 date input.
  • Default: ‘unchecked’.
  • Attribute appears in shortcode when checkbox=’checked’.
[pum_age_form disable_date_input]

4.  Disable Labels (checkbox): This feature applies only to the Birthdate type option chosen from the General option tab.  Enter/Exit type buttons do not include any field labels.

Disables the display of Birthdate field labels.  Default: ‘unchecked’; labels are displayed by default.

Note:   As of version 1.2.4 of the AVM plugin, the Birthdate field labels continue to appear in the Popup Editor after the ‘Disable Labels’ checkbox is checked.  However, the labels do not display when the popup is viewed on the front end. 

Shortcode attributes (visible from the editor Text tab):

  • Disables Birthdate field labels when selected.
  • Default: ‘unchecked’; labels are displayed.
  • Attribute appears in shortcode when the checkbox is ‘checked’.
[pum_age_form disable_labels]

‘Labels’ option settings tab #

FileA.  Type=Enter/Exit or Birthdate on General option tab.

1.  Enter Button (field): Label for the enter button. This button label is used for both the Enter button (Type is Enter/Exit) and the birth date submit button. Default: Enter

Shortcode attributes (visible from the editor Text tab):

  • Customized label for the Enter button.
  • Applies to both type is “enterexit” and type is “birthdate”
  • Default label: Enter.
  • The shortcode attribute is set only when you enter a custom label.
[pum_age_form label_enter="{custom-label}"]

B.  Type is Enter/Exit only on the General option tab. #

2.  Exit Button (field): Label for the exit button. This custom button label applies when the Type is Enter/Exit set on the General option tab. Default: Exit

Shortcode attributes (visible from the editor Text tab):

  • Customized label for the Exit button.
  • This applies when the type is “enterexit”.
  • Default label: Exit.
  • The shortcode attribute is set only when you enter a custom label.
[pum_age_form label_exit="{custom-label}"]

C. Type is Birthdate only on the General option tab. #

3.  Birth Date (field): Label for the single birthdate field.  Appears above the birth date field.  The Disable HTML 5 Date Input? option on the Appearance tab must be unchecked to render a custom label.  Default label: ‘Please enter your birth date.’

Shortcode attributes (visible from the editor Text tab):

  • Customized label for the Birthdate field type.
  • Default label: ‘Please enter your birth date.
  • The shortcode attribute is set only when you enter a custom label.
[pum_age_form label_birthdate="{custom-label}"]

4.  Month (field): Label for the month field.  The Disable HTML 5 Date Input? option on the Appearance tab must be checked.  Default: Month.

Note: As of version 1.2.4 of the AVM plugin, the custom field labels for the Month attribute do not appear in the Popup Editor. However, the custom label does display in the popup on the front end. 

Shortcode attributes (visible from the editor Text tab):

  • HTML 5 Date Input? checkbox on the Appearance tab must be checked.
  • Default: Month.
  • This shortcode attribute is set only when you add a custom label.
[pum_age_form label_month="{custom-label}"]

5.  Day (field): Label for the day field. The Disable HTML 5 Date Input? option on the Appearance tab must be checked. Default: Day.

Note: As of version 1.2.4 of the AVM plugin, the custom field labels for the Day attribute do not appear in the Popup Editor. However, the custom label does display in the popup on the front end. 

Shortcode attributes (visible from the editor Text tab):

  • HTML 5 Date Input? checkbox on the Appearance tab must be checked.
  • Default: Day.
  • This shortcode attribute is set only when you add a custom label.
[pum_age_form label_day="{custom-label}"]

6.  Year (field): Label for the year field. The Disable HTML 5 Date Input? option on the Appearance tab must be checked.  Default: Year.

Note:  As of version 1.2.4 of the AVM plugin, the custom field labels for the Year attribute do not appear in the Popup Editor. However, the custom label does display in the popup on the front end. 

Shortcode attributes (visible from the editor Text tab):

  • HTML 5 Date Input? checkbox on the Appearance tab must be checked.
  • Default: Year.
  • The shortcode attribute is set only when you enter a custom label.
[pum_age_form label_year="{custom-label}"]

Leave the first comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.