Directory / plugin

Lueira Embed

v1.0.8 · by maladeta

A lightweight shortcode that embeds Lueira marketplace activities inside an accessible modal.

About this plugin

Lueira Embed adds a shortcode that renders a configurable button. The button opens an accessible modal showing an iframe with a Lueira marketplace activity. Administrators can configure the base host URL from the WordPress settings screen.

Usage

Basic Shortcode

[lueira id=”cd2j3bkk7mdnur3r857g” module=”school” product_type=”private”]

Shortcode Parameters

Parameter
Required
Default
Description

id
Yes
–
The activity ID to embed

module
Yes
–
The module type (e.g., “school”, “rent”)

product_type
No
–
Optional product type (e.g., “private”, “group-package”) included when available

lang
No
“es”
Language code for localized content, default is “es”

button_text
No
“View activity”
Text displayed on the button

class
No
–
Additional CSS classes for the button

show_details
No
true
Accepts true or false. When false, hides the product header/details by appending showProductDetails=false to the iframe URL

success_url
No
–
Absolute URL the buyer is redirected to after a successful payment. Appended as embedSuccessUrl. Defaults to the store’s own success page when omitted

cancel_url
No
–
Absolute URL the buyer is redirected to if they cancel. Appended as embedCancelUrl

display
No
“modal”
modal opens the activity in a modal iframe; newtab renders a link that opens the activity in a new tab

The query parameters appended to the iframe URL (showProductDetails, embedSuccessUrl, embedCancelUrl) match exactly what the store reads — they are case-sensitive.

Examples

  • School Activity (Private): [lueira id="456" module="school" product_type="private" button_text="View Activity"]
  • School Group Package in English: [lueira id="789" module="school" product_type="group-package" lang="en" class="btn-primary" button_text="Join Group Package"]
  • Rent Bundle with Custom Styling: [lueira id="101" module="rent" product_type="bundle" lang="es" button_text="Ver Actividad" class="lueira-embed__trigger--accent"]
  • Hide product details: [lueira id="202" module="school" show_details="false"]
  • Custom redirect URLs: [lueira id="202" module="shop" success_url="https://tienda.com/gracias" cancel_url="https://tienda.com/carrito"]

Plugin tags