Table of Contents
#
These shortcodes help you manage and display various functionalities related to email verification for WooCommerce users. Below is a comprehensive list of shortcodes, categorized into Free and Pro versions.
Free Version Shortcodes #
- [alg_wc_ev_verification_status]
- Description: Displays the email verification status of the current user, indicating whether they are verified or not.
- Parameters:
- wrapper_template: Template for the wrapper element. Default is <div class=”alg-wc-ev-verification-status”>{content_template}</div>.
- content_template: Template for the content inside the wrapper. Default is Verification status: {verification_status}.
- verified_status: Text to display when the user is verified. Default is Verified.
- unverified_status: Text to display when the user is unverified. Default is Unverified.
- hide_if_verified: Set to true to hide the message if the user is verified. Default is false.
- hide_for_guests: Set to true to hide the message for guest users. Default is false.
- Example Usage:
[alg_wc_ev_verification_status hide_if_verified="true" hide_for_guests="true"]
- Use Case: Display a verification status message to users in their account dashboard or other relevant pages.
- [alg_wc_ev_resend_verification_url]
- Description: Displays a message with a link for users to resend the email verification link.
- Parameters:
- wrapper_template: Template for the wrapper element. Default is <div class=”alg-wc-ev-resend-verification-url”>{content_template}</div>.
- content_template: Template for the content inside the wrapper. Default is You can resend the email with verification link by clicking <a href=”{resend_verification_url}”>here</a>..
- hide_if_verified: Set to true to hide the message if the user is verified. Default is true.
- hide_for_guests: Set to true to hide the message for guest users. Default is false.
- Example Usage:
[alg_wc_ev_resend_verification_url hide_if_verified="true"]
- Use Case: Provide users with a way to resend their verification email if they haven’t received it initially.
- [alg_wc_ev_email_content_placeholder]
- Description: Used to append the verification email content to a custom email template.
- Parameters:
- user_email: The email address of the user.
- Example Usage:
[alg_wc_ev_email_content_placeholder user_email="{user_email}"]
- Use Case: Integrate the email verification content within custom email templates for a more cohesive email design.
Pro Version Shortcodes #
- [alg_wc_ev_new_user_info]
- Description: Displays information about newly registered users.
- Parameters:
- user_id: The ID of the user to display information for.
- Example Usage:
[alg_wc_ev_new_user_info user_id="123"]
- Use Case: Show detailed information about new users who have just registered, useful for admin or custom notifications.
- [alg_wc_ev_resend_verification_form]
- Description: Displays a form for users to request a resend of their email verification link.
- Parameters:
submit_btn_template
: Template for the submit button. Default isSubmit
.
- Example Usage:
[alg_wc_ev_resend_verification_form submit_btn_template="Resend Verification Email"]
- Use Case: Provide a form for users who may have missed the original verification email, enabling them to easily request a resend.
- [alg_wc_ev_translate]
- Description: Translates specific text based on the user’s language preferences, ideal for multilingual setups.
- Parameters:
- lang: Language code (e.g.,
en
for English,fr
for French).
- lang: Language code (e.g.,
- Example Usage:
[alg_wc_ev_translate lang="fr"]Votre email est vérifié.
- Use Case: Use this shortcode to ensure that email verification messages are displayed in the appropriate language based on the user’s preferences.
These shortcodes provide powerful tools for customizing and managing email verification processes in WooCommerce. Whether you need to display verification status, resend links, or integrate with custom email templates, these shortcodes offer flexibility and control over the user experience in your store. The Pro version further extends these capabilities with additional customization and integration options.