Complete Shortcode Reference

BankID
Shortcodes

4 powerful shortcodes that handle every BankID scenario. Copy, paste, and you're done. No coding knowledge needed.

4
Shortcodes
All you need
50+
Parameters
Full customization
100%
WordPress Native
No conflicts
5min
Setup Time
Copy & paste

All Available Shortcodes

Complete reference for every BankID shortcode with parameters, examples, and use cases.

[bankid_auth]
Authentication (Login/Register)

Combined login and registration form with BankID

Examples

Basic login/register
[bankid_auth]
Stay on checkout page
[bankid_auth stay_on_page="yes"]
Custom redirects
[bankid_auth redirect_after_login="/dashboard/" redirect_after_register="/welcome/"]
Login only (no registration)
[bankid_auth show_register="no" require_email="no"]

Key Parameters

button_text"Login/Register with BankID"

Button label

redirect_after_login"My Account"

Where to redirect after login

redirect_after_register"My Account"

Where to redirect after registration

stay_on_page"no"

Stay on current page after login

require_email"yes"

Require email for registration

user_role"subscriber"

Role for new users

[bankid_verify]
Simple Verification

Basic identity verification without creating user account

Examples

Basic verification
[bankid_verify]
Age verification for 18+
[bankid_verify age_limit="18" button_text="Verify Age 18+"]
Custom success flow
[bankid_verify success_message="Welcome! Access granted" redirect_url="/members-area/"]
Small button with custom text
[bankid_verify button_text="Quick Verify" button_size="small"]

Key Parameters

button_text"Verify with BankID"

Button label

success_message"Successfully verified!"

Success message

redirect_url""

Redirect after verification

age_limit"0"

Minimum age requirement

button_size"medium"

Button size (small/medium/large)

icon"yes"

Show BankID logo

[bankid_sign]
Document Signing

Digital document signing with BankID

Examples

Basic agreement signing
[bankid_sign text="I agree to the terms and conditions"]
Contract with email copy
[bankid_sign type="contract" text="Service Agreement 2024" require_email="yes" email_copy="yes"]
Hidden text signing
[bankid_sign text="Privacy Policy v2.0" show_text="no" button_text="Accept Privacy Policy"]
Terms with redirect
[bankid_sign type="terms" text="I accept the membership terms" redirect_url="/welcome/" redirect_delay="3"]

Key Parameters

text"(required)"

Document text to sign

button_text"Sign with BankID"

Button label

type"agreement"

Document type (agreement/consent/contract/terms)

show_text"yes"

Show document text above button

require_email"no"

Require email for copy

email_copy"yes"

Send email confirmation

[bankid_checkout_verify]
WooCommerce Checkout

Add BankID verification to WooCommerce checkout

Examples

Required verification at checkout
[bankid_checkout_verify]
Optional verification
[bankid_checkout_verify optional="yes"]
Age verification for alcohol
[bankid_checkout_verify age_limit="18" button_text="Verify age 18+ for alcohol purchase"]

Key Parameters

button_text"Verify identity"

Checkbox label

optional"no"

Make verification optional

age_limit"0"

Minimum age requirement

Common Use Cases

Real-world examples showing how to use BankID shortcodes in different scenarios.

🛒
E-commerce Checkout
Stay on checkout page after login
[bankid_auth stay_on_page="yes" button_text="Login to Continue"]
👥
Member Portal
Members-only area with redirect
[bankid_auth redirect_after_login="/members-dashboard/" show_register="no"]
🔞
Age Restricted Content
Age gate for adult content
[bankid_verify age_limit="18" redirect_url="/adult-content/" button_text="Verify Age 18+"]
⚖️
Legal Documents
Terms acceptance with timestamp
[bankid_sign type="terms" text="Terms of Service dated 2024-01-04" email_copy="yes"]
🏥
Healthcare Portal
Patient verification
[bankid_verify button_text="Verify Patient Identity" redirect_url="/patient-records/"]
💰
Financial Services
Transaction authorization
[bankid_sign type="consent" text="I authorize transfer of 1000 SEK to account ****1234" require_email="yes"]

Pro Tips & Best Practices

Get the most out of your BankID shortcodes

🚀 Performance Tips

  • • Minimize shortcodes per page - Each creates a potential BankID session
  • • Use show_register="no" for faster login-only forms
  • • Don't cache pages with BankID shortcodes
  • • Set icon="no" if loading custom BankID images

🎯 UX Best Practices

  • • Always test on mobile - BankID behaves differently
  • • Use stay_on_page="yes" for checkout and forms
  • • Set appropriate redirect_delay for better UX
  • • Add class parameter for custom styling

🔒 Security Notes

  • • require_allowlist="yes" restricts to pre-approved users
  • • Age verification is client-side + server verified
  • • All personal numbers are hashed before storage
  • • Email notifications create audit trail for signatures

🇸🇪 Swedish Examples

[bankid_auth button_text="Logga in med BankID"]
[bankid_verify age_limit="18" button_text="Verifiera ålder 18+"]
[bankid_sign text="Jag godkänner avtalet"]

Ready to Copy & Paste?

Get BankConnect WP and start using these powerful shortcodes in your WordPress site today. No coding required.