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-premium.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
Trigger the send gift card notification
Paramsobject $gift_card the gift card object
string the case, for the "Recipient" or in "BCC"
Trigger the send gift card delivered email
Params
object $gift_card the gift card object
Trigger when the gift card status is changed
Paramsobject $gift_card the gift card object
bool $enabled the status of the gift card
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-woocommerce-gift-cards-premium.php
The MPDF object after write the HTML in the PDF template
Params
object $mpdf the MPDF object
The MPDF object after generate the PDF template
Params
object $mpdf the MPDF object
includes/class-yith-ywgc-cart-checkout-premium.php
Trigger the customer notification email
Params
object $gift_card the gift card 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-premium.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/gift-this-product/give-product-as-present.php
Allow actions before the gift card add to cart form
templates/gift-this-product/product-template/default-gift-card-template.php
Allow actions before the gift card add to cart form
Allow actions before the gift card add to cart form opening
Allow actions before the gift card amount list
Params
object $product the gift card product
Display the gift card delivery info section
Params
object $product the gift card product
Params
object $product the gift card product
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/gift-this-product/product-template/gift-card-design.php
Allow actions before the designs section
Allow actions after the designs section
templates/myaccount/my-giftcards.php
Trigger the empty table state
templates/shortcodes/redeem-gift-card-form.php
Adds an action just before register the redemption of the amount via shortcode
Paramsobject $gift_card Object of the gift card.
string $code Code introduced in the shortcode.
float $used_amount Amount introduced in the shortcode.
templates/shortcodes/user-gift-card-table.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
WC_Product $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
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/gift-card-design.php
Allow actions before the designs section
Allow actions after the designs section
templates/yith-gift-cards/layouts/2.0/gift-card-amount-selection.php
Allow to apply changes before the amount selection on the gift card page
Params
WC_Product $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/yith-gift-cards/layouts/2.0/gift-card-design.php
Allow actions before the designs section
Allow actions after the designs section
templates/yith-gift-cards/layouts/2.0/gift-card.php
Allow actions before the gift card add to cart form
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