includes/admin/class-yith-ywgc-backend-extended.php
Filter the condition to generate the gift card. Useful to third-party plugins
Paramsbool true to generate the gift card in the order, false for notobject $order the order object
Returnbool
Filter the condition to apply a race condition when generating the gift cards in the order. Useful when having issues with duplicated gift card codes
Params
bool true to apply it, false for not
Returnbool
Filter the condition to generate the gift card by order item
Paramsbool true to generate it, false for notobject $order the order objectint $order_item_id the order item IDarray $order_item_data the order item data
Returnbool
Filter the line subtotal when generating a gift card code
Paramsfloat the line subtotalarray $order_item_data the order item dataint $order_id the order IDint $order_item_id the order item ID
Returnbool
Filter the line subtotal tax when generating a gift card code
Paramsfloat the line subtotal taxarray $order_item_data the order item dataint $order_id the order IDint $order_item_id the order item ID
Returnbool
Filter the gift card recipients on gift card creation
Params
array the recipients
Returnarray
Filter the if the gift card is postdated
Params
bool true if is postdated, false if not
Returnbool
Filter the customer as the gift card recipient using the billing email
Params
string the recipient email
Returnstring
Filter the generated gift card code
Paramsstring the gift card codeobject $order the order objectobject $gift_card the gift card object
Returnstring
Filter the gift card usage expiration in months
Paramsstring the usage expiration in monthsobject $gift_card the gift card objectint $product_id the product ID
Returnstring
Filter the condition to send the gift card code
Paramsbool true to send it, false for not. Default: trueobject $gift_card the gift card object
Returnbool
Filter the condition to send the gift card code to a custom recipient
Paramsbool true to send it, false for not. Default: falseobject $gift_card the gift card object
Returnbool
Filter the URL of the ajax loader gif for the plugin
Params
string the gif URL
Returnstring
includes/admin/class-yith-ywgc-backend-premium.php
Filter the condition to show the default shipping in the order summary, not the discounted one
Params
bool true to display the default shipping, false to show the discounted shipping. Default: false
Returnbool
Filter the URL of the ajax loader gif for the plugin
Params
string the gif URL
Returnstring
Filter the condition to generate the gift card. Useful to third-party plugins
Paramsbool true to generate the gift card in the order, false for notobject $order the order object
Returnbool
Filter the condition to apply a race condition when generating the gift cards in the order. Useful when having issues with duplicated gift card codes
Params
bool true to apply it, false for not
Returnbool
Filter the condition to generate the gift card by order item
Paramsbool true to generate it, false for notobject $order the order objectint $order_item_id the order item IDarray $order_item_data the order item data
Returnbool
Filter the line subtotal when generating a gift card code
Paramsfloat the line subtotalarray $order_item_data the order item dataint $order_id the order IDint $order_item_id the order item ID
Returnbool
Filter the line subtotal tax when generating a gift card code
Paramsfloat the line subtotal taxarray $order_item_data the order item dataint $order_id the order IDint $order_item_id the order item ID
Returnbool
Filter the gift card recipients on gift card creation
Params
array the recipients
Returnarray
Filter the if the gift card is postdated
Params
bool true if is postdated, false if not
Returnbool
Filter the customer as the gift card recipient using the billing email
Params
string the recipient email
Returnstring
Filter the generated gift card code
Paramsstring the gift card codeobject $order the order objectobject $gift_card the gift card object
Returnstring
Filter the gift card usage expiration in months
Paramsstring the usage expiration in monthsobject $gift_card the gift card objectint $product_id the product ID
Returnstring
Filter the condition to send the gift card code
Paramsbool true to send it, false for not. Default: trueobject $gift_card the gift card object
Returnbool
Filter the condition to send the gift card code to a custom recipient
Paramsbool true to send it, false for not. Default: falseobject $gift_card the gift card object
Returnbool
Filter the "as a Gift Card" string in the order item when a product is gifted
Params
string "as a Gift Card" string in the order item
Returnstring
Filter the condition to show or not the pre-printed gift card code field in the order
Paramsbool true to show it, false for not. Default: trueobject $theorder the order objectobject $_product the gift card product object
Returnbool
Filter the condition to show or not the pre-printed gift card code field in the order
Paramsbool true to show it, false for not. Default: trueobject $theorder the order objectobject $_product the gift card product object
Returnbool
Filter the additional gift card recipients, to send them a BCC email with the gift card
Params
array $recipients the additional recipients
Returnarray
Filter the order item meta values to be hidden in the order details
Params
array $meta_array the order item meta values to be hidden
Returnarray
Filter the gift card table classes
Paramsarray $classes the table classesint $post_id the post ID
Returnarray
Filter the gift card data to be exported in CSV
Paramsarray merged array with the gift card dataarray $gift_cards_columns_labels array with the columns namearray $formatted_gift_card_data array with the gift card dataarray $gift_cards the gift cards to be exported
Returnarray
Filter the size of the gift card images in the categories
Params
string Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
Returnstring
Filter the order statuses where the gift card will be generated
Params
array the order statuses. Default: 'completed', 'processing'
Returnarray
includes/admin/class-yith-ywgc-backend.php
Filter the order statuses where the gift card will be generated
Params
array the order statuses. Default: 'completed', 'processing'
Returnarray
Filter the condition to generate the gift card when the order is completed
Paramsbool true to generate it when the order is completed, false for notobject $order the order object
Returnbool
Filter the gift card table classes
Paramsarray $classes the table classesint $post_id the post ID
Returnarray
Filter the condition to restore the gift card amount if the order is refunded or cancelled
Paramsbool true to restore the amount, false for not. Default: trueobject $gift_card the gift card object
Returnbool
includes/admin/post-types/class-yith-ywgc-gift-card-post-type-admin.php
Filter the column names in the gift cards dashboard
Params
array $columns array of columns titles
Returnarray
Filter the "Generated in bulk" string in the gift cards dashboard
Params
string the "Generated in bulk" string
Returnstring
Filter the "Created manually" string in the gift cards dashboard
Params
string the "Created manually" string
Returnstring
Filter the gift card balance in the gift cards dashboard
Paramsstring the gift card balance using the wc_price methodobject $gift_card the gift card object
Returnstring
Filter the "The code has not been used yet" string in the gift cards dashboard
Params
string the "The code has not been used yet" string
Returnstring
Filter the default column in the gift cards dashboard
Paramsstring the column dataint $post_ID the gift card IDstring $column_name the column name
Returnstring
includes/class-yith-wc-product-gift-card.php
Filter the gift card amounts
Paramsstring $amounts_to_show gift card amountsobject $this gift card object
Returnarray
Filter the gift card product instance
Params
object $this gift card product instance
Returnobject
Filter the empty price HTML for the gift cards
Paramsstring empty stringobject $this gift card product instance
Returnstring
Filter the price range of a gift card product
Paramsstring $price price range of the gift cardobject $this gift card product instancestring $min_price minimum amount of the gift cardstring $max_price maximum amount of the gift card
Returnstring
Filter the gift card amounts to be shown
Paramsstring $amounts_to_show gift card amounts to showstring $gift_card_product_id gift card product id
Returnarray
Filter the gift card amounts by currency
Paramsstring $amounts_to_show gift card amountsobject $this gift card objectint $currency_id currency ID
Returnarray
Filter the manual amount status for the gift card product
Paramsbool bool to check if the manual amount is enabledbool $status manual amount statusobject $this gift card product instance
Returnbool
Filter the "Select amount" text for the gift card products on the catalog pages
Params
string $text Select amount text
Returnstring
Filter the WooCommerce add to cart button text for the gift card products, using the gift card object on the second param
Paramsstring $text add to cart textstring $this gift card object
Returnstring
includes/class-yith-woocommerce-gift-cards-extended.php
Filter the fields to show when editing a gift card on backend
Params
array array with the fields to display
Returnarray
Filter the random generation of the gift card code
Params
string the code randomly generated
Returnstring
includes/class-yith-woocommerce-gift-cards-premium.php
Params
array $emails List of email types
Returnarray
Filter the condition to display the "disable gift this product" option in the products edit page
Paramsbool true to display the option, false to not display itstring $post_type the post typeobject $post the post object
Returnbool
Filter the condition to count or not the default gift card product created by the plugin in the products count
Params
bool true to not count it, false to count it
Returnbool
Filter the condition to hide or not the default gift card product created by the plugin in the products table
Paramsbool true to hide it, false show itobject $query the query object
Returnbool
Filter the arguments for the MPDF library
Params
array arguments to pass to the MPDF library
Returnarray
Filter the HTML content passed to the PDF before rendering it
Params
string $html the HTML content
Returnstring
Filter the PDF directionality
Params
string $direction ltr or rtl
Returnstring
Filter to format the PDF filename
Paramsstring the formatted PDF filenameobject $object the gift card objectstring $pdf_filename the PDF filename
Returnstring
Filter the gift card PDF file path
Paramsstring the PDF file pathint the gift card ID
Returnstring
Filter the gift card formatted price in the product page preview
Paramsstring selected amount formatted as priceobject $object gift card product objectstring $amount selected amount
Returnstring
Filter the URL to add in the QR Code generated in the gift card to automatically apply the code
Params
string URL to redirect the customer, default: the shop page
Returnstring
Filter the date format used in the plugin
Params
string the date format
Returnstring
Filter the query arguments which get all the gift cards assigned to an user
Params
array arguments to generate the get_posts query
Returnarray
Filter the defined bulk actions in the gift card dashboard
Params
array bulks actions defined in the gift card dashboard
Returnarray
includes/class-yith-woocommerce-gift-cards.php
Filter to show or not the gift card dashboard in the WordPress menu
Params
bool true to show it, false to hide it
Returnbool
Filter if current user can create a gift card
Params
bool true if the current user can create a gift card, false if not
Returnbool
Filter the random generation of the gift card code
Params
string the code randomly generated
Returnstring
Params
array $emails List of email types
Returnarray
Filter the condition to deny or not the usage of gift cards codes to purchase gift card products
Params
bool true to deny it, false for not. Default: false
Returnbool
Filter if the gift card have errors when applying it
Paramsstring $err_code the error codeobject $gift the gift card object
Returnstring
Filter the condition to allow to apply the gift card codes to WC_Subscriptions_Product products in the cart
Params
bool true to now allow it and display an error in the cart, false to allow it. Default: true
Returnbool
Filter the gift card code response when applied to the cart. It allows to add conditions based on the products in the cart
Paramsbool true to apply the gift card code, false to notobject $gift the gift card applied object
Returnbool
includes/class-yith-ywgc-cart-checkout-extended.php
Filter the delivery date in the cart item data
Paramsstring the delivery date including the gmt_offsetstring $delivery_date the delivery date
Returnstring
includes/class-yith-ywgc-cart-checkout-premium.php
Filter the gift card product title in the cart
Paramsstring $product_title the product titlearray $cart_item the cart itemstring $cart_item_key the cart item key
Returnstring
Filter the condition to verify the coupon code
Paramsbool true to add a condition, false for not. Default: falsearray $return_val the returning value of the couponstring $code the gift card code applied as coupon
Returnbool
Filter the gift card balance to apply it as a coupon
Paramsfloat the gift card balanceobject $gift_card the gift card object
Returnfloat
Filter the temporal coupon data, generated with the gift card data
Paramsarray the temporal coupon dataobject $gift_card the gift card object
Returnarray
Filter the amount to deduct in the gift cards when it's applied as coupon
Paramsfloat $total_discount_amount_aux the discount amountobject $gift the gift card object
Returnfloat
Filter the new balance of the gift card applied as coupon
Paramsfloat the new balanceobject $gift the gift card objectfloat $total_discount_amount the discount amount
Returnfloat
Filter the condition to allow to purchase gift cards with zero value
Params
bool true to not allow it and show an error message, false to allow it. Default: true
Returnbool
Filter the allowed upload extensions for the custom images
Params
array the allowed extensions. Default: 'jpeg', 'jpg', 'png'
Returnarray
Filter the gift card amount created with the "Gift this product"
Paramsstring $ywgc_amount the amount to create the gift cardobject $product the product object
Returnstring
Filter the condition to allow discounts on the custom amount added by the customer
Params
bool true to allow it, false for not. Default: true
Returnbool
Filter the gift card amount without discount saved in the gift card data
Params
float $ywgc_amount the amount to create the gift card
Returnfloat
Filter the gift card discount value
Paramsfloat the discount amountfloat $ywgc_amount the default amountfloat $on_sale_value the percentage discount value
Returnfloat
Filter the final manual amount to create the gift card on the cart
Params
float the gift card amount
Returnfloat
Filter the final selected amount to create the gift card on the cart
Paramsfloat $ywgc_amount the gift card amountobject $product the gift card amount
Returnfloat
Filter the delivery date in the cart item data
Paramsstring the delivery date including the gmt_offsetstring $delivery_date the delivery date
Returnstring
includes/class-yith-ywgc-cart-checkout.php
Filter the condition to verify the coupon code
Paramsbool true to add a condition, false for not. Default: falsearray $return_val the returning value of the couponstring $code the gift card code applied as coupon
Returnbool
Filter the gift card balance to apply it as a coupon
Paramsfloat the gift card balanceobject $gift_card the gift card object
Returnfloat
Filter the temporal coupon data, generated with the gift card data
Paramsarray the temporal coupon dataobject $gift_card the gift card object
Returnarray
Filter the condition to override the cart item taxes when allowing the shipping in coupons
Params
bool true to allow it, false for not. Default: true
Returnbool
Filter the gift card product image in the cart
Paramsstring $product_image the product imagearray $cart_item the cart item
Returnstring
Filter the gift card label in the totals on cart
Paramsstring the gift card labelstring $code the gift card code
Returnstring
Filter the gift card total amount in the totals on cart
Paramsstring $amount the gift card amountstring $code the gift card code
Returnstring
Filter the "remove" text displayed on the cart totals, to remove the gift card from the cart
Params
string the "remove" text
Returnstring
Filter the gift card balance to be applied to the cart
Paramsstring the gift card balanceobject $gift_card the gift card object
Returnstring
Filter the condition to detract the gift card balance residue to the shipping total
Params
bool true to allow it, false for not. Default: true
Returnbool
Filter the condition to recalculate taxes after cart total
Params
bool true to recalculate it, false for not. Default: false
Returnbool
Filter the gift card amount before deduct it from the gift card balance
Paramsstring $amount the amount to be deductedobject $gift the gift card objectobject $order the order object
Returnstring
Filter the gift card new balance before update it
Paramsstring the new gift card balanceobject $gift the gift card objectstring $amount the amount to be deducted
Returnstring
Filter the gift card item price in the cart session
Paramsfloat the gift card amountarray $values array with the values
Returnfloat
includes/class-yith-ywgc-emails-extended.php
Filter the send date for the delayed gift cards
Params
int the send date in timestamp
Returnint
Filter the condition to deny to send the gift card email
Paramsbool true to deny it, false to allow it. Default: falseobject $gift_card the gift card object
Returnbool
Filter the recipient email before sending the gift card email
Paramsstring the recipient emailobject $gift_card the gift card object
Returnstring
includes/class-yith-ywgc-emails-premium.php
Filter the shop page URL added in the gift card to automatically apply the code on the cart
Paramsstring URL to redirect the customer, default: the shop pageobject $gift_card the gift card object
Returnstring
Filter the complete URL generated to automatically apply the code on the cart
Paramsstring $apply_discount_url URL to apply the discount automatically in the cartarray $args arguments to pass to the URLobject $gift_card the gift card object
Returnstring
Filter the condition to deny to send the gift card email
Paramsbool true to deny it, false to allow it. Default: falseobject $gift_card the gift card object
Returnbool
Filter the recipient email before sending the gift card email
Paramsstring the recipient emailobject $gift_card the gift card object
Returnstring
includes/class-yith-ywgc-emails.php
Filter the condition to deny to send the gift card email
Paramsbool true to deny it, false to allow it. Default: falseobject $gift_card the gift card object
Returnbool
Filter the recipient email before sending the gift card email
Paramsstring the recipient emailobject $gift_card the gift card object
Returnstring
Filter the introductory text in the gift card email
Paramsstring $text introductory textobject $gift_card the gift card object
Returnstring
Filter the shop name displayed on the gift card email footer
Params
string the shop name
Returnstring
Filter the shop link displayed on the gift card email footer
Params
string the shop link. Default: shop page
Returnstring
includes/class-yith-ywgc-frontend-extended.php
Filter the cart hook where we want to display the fields to add the gift card codes
Params
string the hook name. Default: woocommerce_before_cart
Returnstring
Filter the checkout hook where we want to display the fields to add the gift card codes
Params
string the hook name. Default: woocommerce_before_checkout_form
Returnstring
includes/class-yith-ywgc-frontend-premium.php
Filter the product object in the shop page to manage the "Gift this product" button
Params
object the product object
Returnobject
Filter the condition to display the "Gift this product" feature in the products
Paramsbool true to display it, false to not. Default: trueobject the product object
Returnbool
Filter the "Gift this product" button class on the shop page
Params
string the "Gift this product" button class
Returnstring
Filter the condition to enqueue the frontend scripts
Params
bool true to load it anywhere, false to only load in the specific pages. Default: false
Returnbool
Filter the frontend.js script source path
Params
string the source path
Returnstring
Filter the minimal amount error text on the manual amount field
Params
string the error text
Returnstring
Filter the maximum amount error text on the manual amount field
Params
string the error text
Returnstring
Filter the manual amount wrong format error text
Params
string the error text
Returnstring
Filter the popup handler script data
Params
array the script data
Returnarray
Filter the condition to enqueue the frontend styles
Params
bool true to load the styles, false to not. Default: true
Returnbool
Filter the condition to enqueue the jQuery UI styles
Params
bool true to load the styles, false to not. Default: true
Returnbool
Filter the custom CSS added in the frontend
Params
string the custom CSS
Returnstring
Filter the arguments to pass to the design presets template
Params
array the array of arguments
Returnarray
Filter the condition to skip the autocomplete orders based on the order
Paramsbool true to skip it, false to not. Default: falseint $order_id the order ID
Returnbool
Filter the condition to display the gift card code in the order details
Params
bool true to display it, false to not. Default: true
Returnbool
includes/class-yith-ywgc-frontend.php
Filter the arguments to pass to the design presets template
Params
array the array of arguments
Returnarray
Filter the "Gift Cards" menu item title on "My Account"
Params
string the "Gift Cards" menu item title
Returnstring
Filter the condition to display the gift card code in the order details
Params
bool true to display it, false to not. Default: true
Returnbool
Filter the condition to enqueue of the frontend scripts
Params
bool true to enqueue the scripts everywhere. False to only enqueue them in the product, cart and checkout pages.
Returnbool
Filter the gift card notices target in the frontend script
Params
string the notice target selector. Default: div.woocommerce
Returnstring
Filter the empty price HTML for the gift cards
Paramsstring empty stringobject $this gift card product instance
Returnstring
Filter the price range of a gift card product
Paramsstring $price_html price range of the gift cardobject $this gift card product instancefloat $min_price minimum amount of the gift cardfloat $max_price maximum amount of the gift card
Returnstring
includes/class-yith-ywgc-gift-card.php
Filter the gift card post title
Paramsstring the post titleobject $post the gift card post object
Returnobject
Filter the gift card total balance on post creation
Paramsfloat the total balanceobject $post the gift card post objectstring the gift card code
Returnfloat
Filter the condition to check if the gift card can be used
Paramsbool $can_use true if it can be used, false if notobject the gift card object
Returnbool
Filter the gift card total balance getter
Paramsfloat the total balance roundedfloat the total balanceobject the gift card post object
Returnfloat
Filter the gift card error message
Paramsstring $err the error messagestring $err_code the error codeobject the gift card object
Returnstring
Filter the error message when a gift card is applied to the cart
Paramsstring $err the error messagestring $err_code the error codeobject the gift card object
Returnstring
Filter the gift card total balance saved
Paramsfloat the total balance roundedfloat the total balanceobject the gift card post object
Returnfloat
Filter the gift card total amount saved
Paramsfloat the total amount roundedfloat the total amountobject the gift card post object
Returnfloat
includes/class-yith-ywgc-popup.php
Filter the arguments to pass to the popup template
Params
array the array of arguments
Returnarray
Filter the arguments to pass to the design presets template
Params
array the array of arguments
Returnarray
includes/emails/class-yith-ywgc-email-delivered-gift-card.php
Filter the recipient email for the delivered gift card email
Params
string the recipient email
Returnstring
includes/emails/class-yith-ywgc-email-notify-customer.php
Filter the recipient email for the notify customer gift card email
Paramsstring the recipient emailobject $gift_card the gift card object
Returnstring
includes/emails/class-yith-ywgc-email-send-gift-card.php
Filter the condition to set the gift card as sent
Params
bool true to set it as sent, false to not. Default: true
Returnbool
templates/checkout/form-gift-cards.php
Filter the condition display the gift card form in the gift card product page
Params
bool true to display it, false to not. Default: true
Returnbool
Filter the gift card field placeholder in the cart & checkout
Params
string the placeholder
Returnstring
templates/emails/delivered-gift-card.php
Filter the introductory text before the gift card preview
Paramsstring true to display it, false to not. Default: trueobject $gift_card the gift card object
Returnstring
templates/emails/product-suggestion.php
Filter the suggestion message for the "Gift this product" section on the gift card sent to the customer
Params
string the suggestion message
Returnstring
Filter the condition to display the product price in the product suggestion
Params
bool true to display it, false to not. Default: true
Returnbool
Filter the URL of the product suggestion image
Params
string the image URL
Returnstring
templates/gift-this-product/form-preview.php
Filter the "From" text in the gift card preview on the product page
Params
string the text
Returnstring
Filter the "To" text in the gift card preview on the product page
Params
string the text
Returnstring
templates/gift-this-product/gift-this-product-form-info.php
Filter the include shipping label on the "Gift this product" section
Params
string the label text
Returnstring
templates/myaccount/my-giftcards.php
Filter the columns to display in the gift card table in "My account"
Params
array the columns
Returnarray
Filter the query to display in the gift cards table in "My account"
Params
array the gift cards query
Returnarray
Filter the title to display in the gift card table in "My account"
Params
string the table title
Returnstring
Filter the text to add a new gift card in the gift card table in "My account"
Params
string the text
Returnstring
Filter the expiration message in the gift card table in "My account"
Params
string the expiration message
Returnstring
Filter the default column in the gift card table in "My account"
Paramsstring the column dataint $column_id the column IDobject $gift_card the gift card object
Returnstring
templates/shortcodes/redeem-gift-card-form.php
Filter the condition to access to the redeem shortcode
Params
bool true to give access, false to not. Default: false
Returnbool
templates/shortcodes/user-gift-card-table.php
Filter the title to display in the gift card table shortcode
Params
string the table title
Returnstring
templates/single-product/add-to-cart/gift-card-add-to-cart.php
Filter the "Add to cart" button text for the gift card products
Params
string the button text
Returnstring
templates/single-product/add-to-cart/gift-card-amount-selection.php
Filter the custom amount field placeholder on the gift card product page
Params
string the custom amount field placeholder
Returnstring
templates/single-product/form-preview.php
Filter the "From" text in the gift card preview on the product page
Params
string the text
Returnstring
Filter the "To" text in the gift card preview on the product page
Params
string the text
Returnstring
templates/yith-gift-cards/gift-card-details.php
Filter the "Delivery date:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Delivery date" field placeholder in the gift card form in the product page
Params
string the placeholder
Returnstring
Filter the recipient "Name:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Email:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "If empty, will be sent to your email address" text in the gift card form in the product page
Params
string the text
Returnstring
Filter the sender "Name:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Message:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the delivery notification option text
Params
string the option text
Returnstring
templates/yith-gift-cards/gift-card-presets.php
Filter the "Categories" title in the gift card form in the product page
Params
string the title text
Returnstring
Filter the "All" text displayed in the last gallery image to display all the images in a modal
Params
string the text
Returnstring
templates/yith-gift-cards/layouts/2.0/form-preview.php
Filter the "From" text in the gift card preview on the product page
Params
string the text
Returnstring
Filter the "To" text in the gift card preview on the product page
Params
string the text
Returnstring
templates/yith-gift-cards/layouts/2.0/gift-card-amount-selection.php
Filter the custom amount field placeholder on the gift card product page
Params
string the custom amount field placeholder
Returnstring
templates/yith-gift-cards/layouts/2.0/gift-card-details.php
Filter the recipient "Name:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Email:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Message:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Delivery date:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the "Delivery date" field placeholder in the gift card form in the product page
Params
string the placeholder
Returnstring
Filter the sender "Name:" label in the gift card form in the product page
Params
string the label text
Returnstring
Filter the delivery notification option text
Params
string the option text
Returnstring
templates/yith-gift-cards/ywgc-gift-card-template.php
Filter the company logo URL in the gift card template
Paramsstring $company_logo_url the company logo URLstring $context the context. Allowed values: "email" or "pdf"
Returnstring
Filter the custom gift card image URL in the gift card template
Paramsstring $company_logo_url the custom gift card imag URLstring $context the context. Allowed values: "email" or "pdf"
Returnstring
Filter the gift card product name in the gift card template
Paramsstring $product_name_text the product nameobject $object the gift card objectstring $context the context. Allowed values: "email" or "pdf"int $product_id the product ID
Returnstring
Filter the condition to display the gift card price in the gift card template
Paramsbool true to display it, false to not. Default: truestring $formatted_price the formatted gift card priceobject $object the gift card objectstring $context the context. Allowed values: "email" or "pdf"
Returnbool
Filter the formatted gift card price in the gift card template
Paramsstring $formatted_price the formatted gift card priceobject $object the gift card objectstring $context the context. Allowed values: "email" or "pdf"
Returnstring
Filter the condition to display from/to section in the gift card template
Params
bool true to display it, false to not. Default: true
Returnbool
Filter the "Gift card code: " text in the gift card template
Params
string the text
Returnstring
Filter the gift card code displayed in the gift card template
Paramsstring $gift_card_code the gift card codeobject $object the gift card objectstring $context the context. Allowed values: "email" or "pdf"
Returnstring
Filter the content of the QR Code in the gift card template
Paramsstring $apply_discount_url the QR Code contentobject $object the gift card objectstring $gift_card_code the gift card code
Returnstring
Filter the expiration message in the gift card template
Paramsstring the expiration messageobject $object the gift card objectstring $context the context. Allowed values: "email" or "pdf"
Returnstring