includes/admin/class-yith-ywgc-backend-extended.php
Allow actions before the gift card generated is save
Params
object $gift_card the gift card object
Allow actions after the gift card generated is save
Params
object $gift_card the gift card object
includes/admin/class-yith-ywgc-backend.php
Allow actions after the gift card product is save
Paramsint $post_id the gift card ID
object $post the post object
object $product the product object
includes/class-yith-ywgc-cart-checkout.php
Allow to add extra information at the end of the gift card data on cart and checkout
Paramsstring $code the gift card ocodebject
float $amount the gift card amount
Triggered before update the total with the gift card value substracted
Paramsobject $cart the cart object
float $discount the gift card discount amount
Triggered after update the total with the gift card value substracted
Paramsobject $cart the cart object
float $discount the gift card discount amount
includes/class-yith-ywgc-emails-extended.php
Before send the gift card notification via email
Params
object $gift_card the gift card object
Trigger the gift card notification email
Paramsobject $gift_card the gift card object
string the recipient case
After send the gift card notification via email
Params
object $gift_card the gift card object
includes/class-yith-ywgc-emails.php
Before send the gift card notification via email
Params
object $gift_card the gift card object
Trigger the gift card notification email
Paramsobject $gift_card the gift card object
string the recipient case
After send the gift card notification via email
Params
object $gift_card the gift card object
templates/emails/send-gift-card.php
Display the introductory text on the gift card email before the gift card preview
Paramsstring $introductory_text the introductory text
object $gift_card the gift card object
Allow to add content before the gift card preview in the email
Params
object $gift_card the gift card object
Allow to add content after the gift card preview in the email
Params
object $gift_card the gift card object
templates/myaccount/my-giftcards.php
Trigger the empty table state
templates/single-product/add-to-cart/gift-card-amount-selection.php
Allow to apply changes before the amount selection on the gift card page
Params
object $product the gift card product
Trigger the last amount in the select amount section, to allow the inclusion of the custom amount
Params
object $product the gift card product
Allow to apply changes after the amount selection on the gift card page
Params
object $product the gift card product
templates/single-product/add-to-cart/gift-card.php
Allow actions before the gift card add to cart form opening
Display the gift card design section
Params
object $product the gift card product
Allow actions before the gift card amount list
Params
object $product the gift card product
Display the gift card amounts section
Params
object $product the gift card product
Display the gift card delivery info section
Params
object $product the gift card product
Allow actions before the add to cart button
Allow actions before the gift card template
Used to output the cart button and placeholder for variation data
Allow actions after the gift card template
Allow actions after the gift card add to cart button
Allow actions after the gift card form
Allow actions after the gift card add to cart form
End of the gift card preview section
Params
object $product the gift card product
templates/yith-gift-cards/ywgc-gift-card-template.php
Allow actions before displaying the logo in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions before displaying the main image in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the main image in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the logo in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the price in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the price and logo in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the message in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the code in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf
Allow actions after displaying the expiration date message in the gift card template
Paramsobject $object the gift card object
string $context the template context, email or pdf