View Product Page

Filters

includes/admin/class-yith-ywgc-backend-extended.php

Copied!
Copy

Filter the condition to generate the gift card. Useful to third-party plugins

Params
 bool true to generate the gift card in the order, false for not
 object $order the order object

Return bool

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the condition to generate the gift card by order item

Params
 bool true to generate it, false for not
 object $order the order object
 int $order_item_id the order item ID
 array $order_item_data the order item data

Return bool

Copied!
Copy

Filter the line subtotal when generating a gift card code

Params
 float the line subtotal
 array $order_item_data the order item data
 int $order_id the order ID
 int $order_item_id the order item ID

Return bool

Copied!
Copy

Filter the line subtotal tax when generating a gift card code

Params
 float the line subtotal tax
 array $order_item_data the order item data
 int $order_id the order ID
 int $order_item_id the order item ID

Return bool

Copied!
Copy

Filter the gift card recipients on gift card creation

Params
 array the recipients

Return array

Copied!
Copy

Filter the if the gift card is postdated

Params
 bool true if is postdated, false if not

Return bool

Copied!
Copy

Filter the customer as the gift card recipient using the billing email

Params
 string the recipient email

Return string

Copied!
Copy

Filter the generated gift card code

Params
 string the gift card code
 object $order the order object
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the gift card usage expiration in months

Params
 string the usage expiration in months
 object $gift_card the gift card object
 int $product_id the product ID

Return string

Copied!
Copy

Filter the condition to send the gift card code

Params
 bool true to send it, false for not. Default: true
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the condition to send the gift card code to a custom recipient

Params
 bool true to send it, false for not. Default: false
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the URL of the ajax loader gif for the plugin

Params
 string the gif URL

Return string

includes/admin/class-yith-ywgc-backend-premium.php

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the URL of the ajax loader gif for the plugin

Params
 string the gif URL

Return string

Copied!
Copy

Filter the condition to generate the gift card. Useful to third-party plugins

Params
 bool true to generate the gift card in the order, false for not
 object $order the order object

Return bool

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the condition to generate the gift card by order item

Params
 bool true to generate it, false for not
 object $order the order object
 int $order_item_id the order item ID
 array $order_item_data the order item data

Return bool

Copied!
Copy

Filter the line subtotal when generating a gift card code

Params
 float the line subtotal
 array $order_item_data the order item data
 int $order_id the order ID
 int $order_item_id the order item ID

Return bool

Copied!
Copy

Filter the line subtotal tax when generating a gift card code

Params
 float the line subtotal tax
 array $order_item_data the order item data
 int $order_id the order ID
 int $order_item_id the order item ID

Return bool

Copied!
Copy

Filter the gift card recipients on gift card creation

Params
 array the recipients

Return array

Copied!
Copy

Filter the if the gift card is postdated

Params
 bool true if is postdated, false if not

Return bool

Copied!
Copy

Filter the customer as the gift card recipient using the billing email

Params
 string the recipient email

Return string

Copied!
Copy

Filter the generated gift card code

Params
 string the gift card code
 object $order the order object
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the gift card usage expiration in months

Params
 string the usage expiration in months
 object $gift_card the gift card object
 int $product_id the product ID

Return string

Copied!
Copy

Filter the condition to send the gift card code

Params
 bool true to send it, false for not. Default: true
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the condition to send the gift card code to a custom recipient

Params
 bool true to send it, false for not. Default: false
 object $gift_card the gift card object

Return bool

Copied!
Copy

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

Return string

Copied!
Copy

Filter the condition to show or not the pre-printed gift card code field in the order

Params
 bool true to show it, false for not. Default: true
 object $theorder the order object
 object $_product the gift card product object

Return bool

Copied!
Copy

Filter the condition to show or not the pre-printed gift card code field in the order

Params
 bool true to show it, false for not. Default: true
 object $theorder the order object
 object $_product the gift card product object

Return bool

Copied!
Copy

Filter the additional gift card recipients, to send them a BCC email with the gift card

Params
 array $recipients the additional recipients

Return array

Copied!
Copy

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

Return array

Copied!
Copy

Filter the gift card table classes

Params
 array $classes the table classes
 int $post_id the post ID

Return array

Copied!
Copy

Filter the gift card data to be exported in CSV

Params
 array merged array with the gift card data
 array $gift_cards_columns_labels array with the columns name
 array $formatted_gift_card_data array with the gift card data
 array $gift_cards the gift cards to be exported

Return array

Copied!
Copy

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).

Return string

Copied!
Copy

Filter the order statuses where the gift card will be generated

Params
 array the order statuses. Default: 'completed', 'processing'

Return array

includes/admin/class-yith-ywgc-backend.php

Copied!
Copy

Filter the order statuses where the gift card will be generated

Params
 array the order statuses. Default: 'completed', 'processing'

Return array

Copied!
Copy

Filter the condition to generate the gift card when the order is completed

Params
 bool true to generate it when the order is completed, false for not
 object $order the order object

Return bool

Copied!
Copy

Filter the gift card table classes

Params
 array $classes the table classes
 int $post_id the post ID

Return array

Copied!
Copy

Filter the condition to restore the gift card amount if the order is refunded or cancelled

Params
 bool true to restore the amount, false for not. Default: true
 object $gift_card the gift card object

Return bool

includes/admin/post-types/class-yith-ywgc-gift-card-post-type-admin.php

Copied!
Copy

Filter the column names in the gift cards dashboard

Params
 array $columns array of columns titles

Return array

Copied!
Copy

Filter the "Generated in bulk" string in the gift cards dashboard

Params
 string the "Generated in bulk" string

Return string

Copied!
Copy

Filter the "Created manually" string in the gift cards dashboard

Params
 string the "Created manually" string

Return string

Copied!
Copy

Filter the gift card balance in the gift cards dashboard

Params
 string the gift card balance using the wc_price method
 object $gift_card the gift card object

Return string

Copied!
Copy

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

Return string

Copied!
Copy

Filter the default column in the gift cards dashboard

Params
 string the column data
 int $post_ID the gift card ID
 string $column_name the column name

Return string

includes/class-yith-wc-product-gift-card.php

Copied!
Copy

Filter the gift card amounts

Params
 string $amounts_to_show gift card amounts
 object $this  gift card object

Return array

Copied!
Copy

Filter the gift card product instance

Params
 object $this gift card product instance

Return object

Copied!
Copy

Filter the empty price HTML for the gift cards

Params
 string empty string
 object $this gift card product instance

Return string

Copied!
Copy

Filter the price range of a gift card product

Params
 string $price price range of the gift card
 object $this gift card product instance
 string $min_price minimum amount of the gift card
 string $max_price maximum amount of the gift card

Return string

Copied!
Copy

Filter the gift card amounts to be shown

Params
 string $amounts_to_show gift card amounts to show
 string $gift_card_product_id  gift card product id

Return array

Copied!
Copy

Filter the gift card amounts by currency

Params
 string $amounts_to_show gift card amounts
 object $this  gift card object
 int $currency_id  currency ID

Return array

Copied!
Copy

Filter the manual amount status for the gift card product

Params
 bool bool to check if the manual amount is enabled
 bool $status manual amount status
 object $this gift card product instance

Return bool

Copied!
Copy

Filter the "Select amount" text for the gift card products on the catalog pages

Params
 string $text Select amount text

Return string

Copied!
Copy

Filter the WooCommerce add to cart button text for the gift card products, using the gift card object on the second param

Params
 string $text add to cart text
 string $this gift card object

Return string

includes/class-yith-woocommerce-gift-cards-extended.php

Copied!
Copy

Filter the fields to show when editing a gift card on backend

Params
 array array with the fields to display

Return array

Copied!
Copy

Filter the random generation of the gift card code

Params
 string the code randomly generated

Return string

includes/class-yith-woocommerce-gift-cards-premium.php

Copied!
Copy

Params
 array $emails List of email types

Return array

Copied!
Copy

Filter the condition to display the "disable gift this product" option in the products edit page

Params
 bool true to display the option, false to not display it
 string $post_type the post type
 object $post the post object

Return bool

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the condition to hide or not the default gift card product created by the plugin in the products table

Params
 bool true to hide it, false show it
 object $query the query object

Return bool

Copied!
Copy

Filter the arguments for the MPDF library

Params
 array arguments to pass to the MPDF library

Return array

Copied!
Copy

Filter the HTML content passed to the PDF before rendering it

Params
 string $html the HTML content

Return string

Copied!
Copy

Filter the PDF directionality

Params
 string $direction ltr or rtl

Return string

Copied!
Copy

Filter to format the PDF filename

Params
 string the formatted PDF filename
 object $object the gift card object
 string $pdf_filename the PDF filename

Return string

Copied!
Copy

Filter the gift card PDF file path

Params
 string the PDF file path
 int the gift card ID

Return string

Copied!
Copy

Filter the gift card formatted price in the product page preview

Params
 string selected amount formatted as price
 object $object gift card product object
 string $amount selected amount

Return string

Copied!
Copy

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

Return string

Copied!
Copy

Filter the date format used in the plugin

Params
 string the date format

Return string

Copied!
Copy

Filter the query arguments which get all the gift cards assigned to an user

Params
 array arguments to generate the get_posts query

Return array

Copied!
Copy

Filter the defined bulk actions in the gift card dashboard

Params
 array bulks actions defined in the gift card dashboard

Return array

includes/class-yith-woocommerce-gift-cards.php

Copied!
Copy

Filter to show or not the gift card dashboard in the WordPress menu

Params
 bool true to show it, false to hide it

Return bool

Copied!
Copy

Filter if current user can create a gift card

Params
 bool true if the current user can create a gift card, false if not

Return bool

Copied!
Copy

Filter the random generation of the gift card code

Params
 string the code randomly generated

Return string

Copied!
Copy

Params
 array $emails List of email types

Return array

Copied!
Copy

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

Return bool

Copied!
Copy

Filter if the gift card have errors when applying it

Params
 string $err_code the error code
 object $gift the gift card object

Return string

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the gift card code response when applied to the cart. It allows to add conditions based on the products in the cart

Params
 bool true to apply the gift card code, false to not
 object $gift the gift card applied object

Return bool

includes/class-yith-ywgc-cart-checkout-extended.php

Copied!
Copy

Filter the delivery date in the cart item data

Params
 string the delivery date including the gmt_offset
 string $delivery_date the delivery date

Return string

includes/class-yith-ywgc-cart-checkout-premium.php

Copied!
Copy

Filter the gift card product title in the cart

Params
 string $product_title the product title
 array $cart_item the cart item
 string $cart_item_key the cart item key

Return string

Copied!
Copy

Filter the condition to verify the coupon code

Params
 bool true to add a condition, false for not. Default: false
 array $return_val the returning value of the coupon
 string $code the gift card code applied as coupon

Return bool

Copied!
Copy

Filter the gift card balance to apply it as a coupon

Params
 float the gift card balance
 object $gift_card the gift card object

Return float

Copied!
Copy

Filter the temporal coupon data, generated with the gift card data

Params
 array the temporal coupon data
 object $gift_card the gift card object

Return array

Copied!
Copy

Filter the amount to deduct in the gift cards when it's applied as coupon

Params
 float $total_discount_amount_aux the discount amount
 object $gift the gift card object

Return float

Copied!
Copy

Filter the new balance of the gift card applied as coupon

Params
 float the new balance
 object $gift the gift card object
 float $total_discount_amount the discount amount

Return float

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the allowed upload extensions for the custom images

Params
 array the allowed extensions. Default: 'jpeg', 'jpg', 'png'

Return array

Copied!
Copy

Filter the gift card amount created with the "Gift this product"

Params
 string $ywgc_amount the amount to create the gift card
 object $product the product object

Return string

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the gift card amount without discount saved in the gift card data

Params
 float $ywgc_amount the amount to create the gift card

Return float

Copied!
Copy

Filter the gift card discount value

Params
 float the discount amount
 float $ywgc_amount the default amount
 float $on_sale_value the percentage discount value

Return float

Copied!
Copy

Filter the final manual amount to create the gift card on the cart

Params
 float the gift card amount

Return float

Copied!
Copy

Filter the final selected amount to create the gift card on the cart

Params
 float $ywgc_amount the gift card amount
 object $product the gift card amount

Return float

Copied!
Copy

Filter the delivery date in the cart item data

Params
 string the delivery date including the gmt_offset
 string $delivery_date the delivery date

Return string

includes/class-yith-ywgc-cart-checkout.php

Copied!
Copy

Filter the condition to verify the coupon code

Params
 bool true to add a condition, false for not. Default: false
 array $return_val the returning value of the coupon
 string $code the gift card code applied as coupon

Return bool

Copied!
Copy

Filter the gift card balance to apply it as a coupon

Params
 float the gift card balance
 object $gift_card the gift card object

Return float

Copied!
Copy

Filter the temporal coupon data, generated with the gift card data

Params
 array the temporal coupon data
 object $gift_card the gift card object

Return array

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the gift card product image in the cart

Params
 string $product_image the product image
 array $cart_item the cart item

Return string

Copied!
Copy

Filter the gift card label in the totals on cart

Params
 string the gift card label
 string $code the gift card code

Return string

Copied!
Copy

Filter the gift card total amount in the totals on cart

Params
 string $amount the gift card amount
 string $code the gift card code

Return string

Copied!
Copy

Filter the "remove" text displayed on the cart totals, to remove the gift card from the cart

Params
 string the "remove" text

Return string

Copied!
Copy

Filter the gift card balance to be applied to the cart

Params
 string the gift card balance
 object $gift_card the gift card object

Return string

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the condition to recalculate taxes after cart total

Params
 bool true to recalculate it, false for not. Default: false

Return bool

Copied!
Copy

Filter the gift card amount before deduct it from the gift card balance

Params
 string $amount the amount to be deducted
 object $gift the gift card object
 object $order the order object

Return string

Copied!
Copy

Filter the gift card new balance before update it

Params
 string the new gift card balance
 object $gift the gift card object
 string $amount the amount to be deducted

Return string

Copied!
Copy

Filter the gift card item price in the cart session

Params
 float the gift card amount
 array $values array with the values

Return float

includes/class-yith-ywgc-emails-extended.php

Copied!
Copy

Filter the send date for the delayed gift cards

Params
 int the send date in timestamp

Return int

Copied!
Copy

Filter the condition to deny to send the gift card email

Params
 bool true to deny it, false to allow it. Default: false
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the recipient email before sending the gift card email

Params
 string the recipient email
 object $gift_card the gift card object

Return string

includes/class-yith-ywgc-emails-premium.php

Copied!
Copy

Filter the shop page URL added in the gift card to automatically apply the code on the cart

Params
 string URL to redirect the customer, default: the shop page
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the complete URL generated to automatically apply the code on the cart

Params
 string $apply_discount_url URL to apply the discount automatically in the cart
 array $args arguments to pass to the URL
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the condition to deny to send the gift card email

Params
 bool true to deny it, false to allow it. Default: false
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the recipient email before sending the gift card email

Params
 string the recipient email
 object $gift_card the gift card object

Return string

includes/class-yith-ywgc-emails.php

Copied!
Copy

Filter the condition to deny to send the gift card email

Params
 bool true to deny it, false to allow it. Default: false
 object $gift_card the gift card object

Return bool

Copied!
Copy

Filter the recipient email before sending the gift card email

Params
 string the recipient email
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the introductory text in the gift card email

Params
 string $text introductory text
 object $gift_card the gift card object

Return string

Copied!
Copy

Filter the shop name displayed on the gift card email footer

Params
 string the shop name

Return string

Copied!
Copy

Filter the shop link displayed on the gift card email footer

Params
 string the shop link. Default: shop page

Return string

includes/class-yith-ywgc-frontend-extended.php

Copied!
Copy

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

Return string

Copied!
Copy

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

Return string

includes/class-yith-ywgc-frontend-premium.php

Copied!
Copy

Filter the product object in the shop page to manage the "Gift this product" button

Params
 object the product object

Return object

Copied!
Copy

Filter the condition to display the "Gift this product" feature in the products

Params
 bool true to display it, false to not. Default: true
 object the product object

Return bool

Copied!
Copy

Filter the "Gift this product" button class on the shop page

Params
 string the "Gift this product" button class

Return string

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the frontend.js script source path

Params
 string the source path

Return string

Copied!
Copy

Filter the minimal amount error text on the manual amount field

Params
 string the error text

Return string

Copied!
Copy

Filter the maximum amount error text on the manual amount field

Params
 string the error text

Return string

Copied!
Copy

Filter the manual amount wrong format error text

Params
 string the error text

Return string

Copied!
Copy

Filter the popup handler script data

Params
 array the script data

Return array

Copied!
Copy

Filter the condition to enqueue the frontend styles

Params
 bool true to load the styles, false to not. Default: true

Return bool

Copied!
Copy

Filter the condition to enqueue the jQuery UI styles

Params
 bool true to load the styles, false to not. Default: true

Return bool

Copied!
Copy

Filter the custom CSS added in the frontend

Params
 string the custom CSS

Return string

Copied!
Copy

Filter the arguments to pass to the design presets template

Params
 array the array of arguments

Return array

Copied!
Copy

Filter the condition to skip the autocomplete orders based on the order

Params
 bool true to skip it, false to not. Default: false
 int $order_id the order ID

Return bool

Copied!
Copy

Filter the condition to display the gift card code in the order details

Params
 bool true to display it, false to not. Default: true

Return bool

includes/class-yith-ywgc-frontend.php

Copied!
Copy

Filter the arguments to pass to the design presets template

Params
 array the array of arguments

Return array

Copied!
Copy

Filter the "Gift Cards" menu item title on "My Account"

Params
 string the "Gift Cards" menu item title

Return string

Copied!
Copy

Filter the condition to display the gift card code in the order details

Params
 bool true to display it, false to not. Default: true

Return bool

Copied!
Copy

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.

Return bool

Copied!
Copy

Filter the gift card notices target in the frontend script

Params
 string the notice target selector. Default: div.woocommerce

Return string

Copied!
Copy

Filter the empty price HTML for the gift cards

Params
 string empty string
 object $this gift card product instance

Return string

Copied!
Copy

Filter the price range of a gift card product

Params
 string $price_html price range of the gift card
 object $this gift card product instance
 float $min_price minimum amount of the gift card
 float $max_price maximum amount of the gift card

Return string

includes/class-yith-ywgc-gift-card.php

Copied!
Copy

Filter the gift card post title

Params
 string the post title
 object $post the gift card post object

Return object

Copied!
Copy

Filter the gift card total balance on post creation

Params
 float the total balance
 object $post the gift card post object
 string the gift card code

Return float

Copied!
Copy

Filter the condition to check if the gift card can be used

Params
 bool $can_use true if it can be used, false if not
 object the gift card object

Return bool

Copied!
Copy

Filter the gift card total balance getter

Params
 float the total balance rounded
 float the total balance
 object the gift card post object

Return float

Copied!
Copy

Filter the gift card error message

Params
 string $err the error message
 string $err_code the error code
 object the gift card object

Return string

Copied!
Copy

Filter the error message when a gift card is applied to the cart

Params
 string $err the error message
 string $err_code the error code
 object the gift card object

Return string

Copied!
Copy

Filter the gift card total balance saved

Params
 float the total balance rounded
 float the total balance
 object the gift card post object

Return float

Copied!
Copy

Filter the gift card total amount saved

Params
 float the total amount rounded
 float the total amount
 object the gift card post object

Return float

includes/class-yith-ywgc-popup.php

Copied!
Copy

Filter the arguments to pass to the popup template

Params
 array the array of arguments

Return array

Copied!
Copy

Filter the arguments to pass to the design presets template

Params
 array the array of arguments

Return array

includes/emails/class-yith-ywgc-email-delivered-gift-card.php

Copied!
Copy

Filter the recipient email for the delivered gift card email

Params
 string the recipient email

Return string

includes/emails/class-yith-ywgc-email-notify-customer.php

Copied!
Copy

Filter the recipient email for the notify customer gift card email

Params
 string the recipient email
 object $gift_card the gift card object

Return string

includes/emails/class-yith-ywgc-email-send-gift-card.php

Copied!
Copy

Filter the condition to set the gift card as sent

Params
 bool true to set it as sent, false to not. Default: true

Return bool

templates/checkout/form-gift-cards.php

Copied!
Copy

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

Return bool

Copied!
Copy

Filter the gift card field placeholder in the cart & checkout

Params
 string the placeholder

Return string

templates/emails/delivered-gift-card.php

Copied!
Copy

Filter the introductory text before the gift card preview

Params
 string true to display it, false to not. Default: true
 object $gift_card the gift card object

Return string

templates/emails/product-suggestion.php

Copied!
Copy

Filter the suggestion message for the "Gift this product" section on the gift card sent to the customer

Params
 string the suggestion message

Return string

Copied!
Copy

Filter the condition to display the product price in the product suggestion

Params
 bool true to display it, false to not. Default: true

Return bool

Copied!
Copy

Filter the URL of the product suggestion image

Params
 string the image URL

Return string

templates/gift-this-product/form-preview.php

Copied!
Copy

Filter the "From" text in the gift card preview on the product page

Params
 string the text

Return string

Copied!
Copy

Filter the "To" text in the gift card preview on the product page

Params
 string the text

Return string

templates/gift-this-product/gift-this-product-form-info.php

Copied!
Copy

Filter the include shipping label on the "Gift this product" section

Params
 string the label text

Return string

templates/myaccount/my-giftcards.php

Copied!
Copy

Filter the columns to display in the gift card table in "My account"

Params
 array the columns

Return array

Copied!
Copy

Filter the query to display in the gift cards table in "My account"

Params
 array the gift cards query

Return array

Copied!
Copy

Filter the title to display in the gift card table in "My account"

Params
 string the table title

Return string

Copied!
Copy

Filter the text to add a new gift card in the gift card table in "My account"

Params
 string the text

Return string

Copied!
Copy

Filter the expiration message in the gift card table in "My account"

Params
 string the expiration message

Return string

Copied!
Copy

Filter the default column in the gift card table in "My account"

Params
 string the column data
 int $column_id the column ID
 object $gift_card the gift card object

Return string

templates/shortcodes/redeem-gift-card-form.php

Copied!
Copy

Filter the condition to access to the redeem shortcode

Params
 bool true to give access, false to not. Default: false

Return bool

templates/shortcodes/user-gift-card-table.php

Copied!
Copy

Filter the title to display in the gift card table shortcode

Params
 string the table title

Return string

templates/single-product/add-to-cart/gift-card-add-to-cart.php

Copied!
Copy

Filter the "Add to cart" button text for the gift card products

Params
 string the button text

Return string

templates/single-product/add-to-cart/gift-card-amount-selection.php

Copied!
Copy

Filter the custom amount field placeholder on the gift card product page

Params
 string the custom amount field placeholder

Return string

templates/single-product/form-preview.php

Copied!
Copy

Filter the "From" text in the gift card preview on the product page

Params
 string the text

Return string

Copied!
Copy

Filter the "To" text in the gift card preview on the product page

Params
 string the text

Return string

templates/yith-gift-cards/gift-card-details.php

Copied!
Copy

Filter the "Delivery date:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Delivery date" field placeholder in the gift card form in the product page

Params
 string the placeholder

Return string

Copied!
Copy

Filter the recipient "Name:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Email:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

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

Return string

Copied!
Copy

Filter the sender "Name:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Message:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the delivery notification option text

Params
 string the option text

Return string

templates/yith-gift-cards/gift-card-presets.php

Copied!
Copy

Filter the "Categories" title in the gift card form in the product page

Params
 string the title text

Return string

Copied!
Copy

Filter the "All" text displayed in the last gallery image to display all the images in a modal

Params
 string the text

Return string

templates/yith-gift-cards/layouts/2.0/form-preview.php

Copied!
Copy

Filter the "From" text in the gift card preview on the product page

Params
 string the text

Return string

Copied!
Copy

Filter the "To" text in the gift card preview on the product page

Params
 string the text

Return string

templates/yith-gift-cards/layouts/2.0/gift-card-amount-selection.php

Copied!
Copy

Filter the custom amount field placeholder on the gift card product page

Params
 string the custom amount field placeholder

Return string

templates/yith-gift-cards/layouts/2.0/gift-card-details.php

Copied!
Copy

Filter the recipient "Name:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Email:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Message:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Delivery date:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the "Delivery date" field placeholder in the gift card form in the product page

Params
 string the placeholder

Return string

Copied!
Copy

Filter the sender "Name:" label in the gift card form in the product page

Params
 string the label text

Return string

Copied!
Copy

Filter the delivery notification option text

Params
 string the option text

Return string

templates/yith-gift-cards/ywgc-gift-card-template.php

Copied!
Copy

Filter the company logo URL in the gift card template

Params
 string $company_logo_url the company logo URL
 string $context the context. Allowed values: "email" or "pdf"

Return string

Copied!
Copy

Filter the custom gift card image URL in the gift card template

Params
 string $company_logo_url the custom gift card imag URL
 string $context the context. Allowed values: "email" or "pdf"

Return string

Copied!
Copy

Filter the gift card product name in the gift card template

Params
 string $product_name_text the product name
 object $object the gift card object
 string $context the context. Allowed values: "email" or "pdf"
 int $product_id the product ID

Return string

Copied!
Copy

Filter the condition to display the gift card price in the gift card template

Params
 bool true to display it, false to not. Default: true
 string $formatted_price the formatted gift card price
 object $object the gift card object
 string $context the context. Allowed values: "email" or "pdf"

Return bool

Copied!
Copy

Filter the formatted gift card price in the gift card template

Params
 string $formatted_price the formatted gift card price
 object $object the gift card object
 string $context the context. Allowed values: "email" or "pdf"

Return string

Copied!
Copy

Filter the condition to display from/to section in the gift card template

Params
 bool true to display it, false to not. Default: true

Return bool

Copied!
Copy

Filter the "Gift card code: " text in the gift card template

Params
 string the text

Return string

Copied!
Copy

Filter the gift card code displayed in the gift card template

Params
 string $gift_card_code the gift card code
 object $object the gift card object
 string $context the context. Allowed values: "email" or "pdf"

Return string

Copied!
Copy

Filter the content of the QR Code in the gift card template

Params
 string $apply_discount_url the QR Code content
 object $object the gift card object
 string $gift_card_code the gift card code

Return string

Copied!
Copy

Filter the expiration message in the gift card template

Params
 string the expiration message
 object $object the gift card object
 string $context the context. Allowed values: "email" or "pdf"

Return string