eeco_logo_svg Created with Sketch.

WooCommerce Gift Cards

hooks.php

Table of Contents

eeco_gift_cards_attachments()  : mixed
Create attachments for the gift card email
eeco_gift_cards_register_emails()  : mixed
Set email classes for gift cards
eeco_gift_cards_query()  : void
alter gift cards query when querying by post id
eeco_gift_cards_add_prefix()  : string
prefix the gift card code if it has been set
eeco_gift_cards_toggle_status()  : mixed
toggle gift card active status
eeco_gift_cards_deliver_gift_card()  : mixed
deliver the scheduled gift card
eeco_gift_cards_email_actions()  : array<string|int, mixed>
add email actions
eeco_gift_cards_check_for_expired()  : mixed
Check for expired gift cards and update their status

Functions

eeco_gift_cards_attachments()

Create attachments for the gift card email

eeco_gift_cards_attachments(mixed $order_id) : mixed
Parameters
$order_id : mixed
Return values
mixed

eeco_gift_cards_register_emails()

Set email classes for gift cards

eeco_gift_cards_register_emails(array<string|int, mixed> $emails) : mixed
Parameters
$emails : array<string|int, mixed>

Array of email classes

Return values
mixed

eeco_gift_cards_query()

alter gift cards query when querying by post id

eeco_gift_cards_query(WP_Query $query) : void
Parameters
$query : WP_Query

The query object

Return values
void

eeco_gift_cards_add_prefix()

prefix the gift card code if it has been set

eeco_gift_cards_add_prefix(mixed $code) : string
Parameters
$code : mixed

The code to prefix

Return values
string

Gift card code

eeco_gift_cards_toggle_status()

toggle gift card active status

eeco_gift_cards_toggle_status() : mixed
Return values
mixed

eeco_gift_cards_deliver_gift_card()

deliver the scheduled gift card

eeco_gift_cards_deliver_gift_card(int $order_id, int $gift_card_id) : mixed
Parameters
$order_id : int

The order id

$gift_card_id : int

The gift card id

Return values
mixed

eeco_gift_cards_email_actions()

add email actions

eeco_gift_cards_email_actions(array<string|int, mixed> $actions) : array<string|int, mixed>
Parameters
$actions : array<string|int, mixed>

The current actions

Return values
array<string|int, mixed>

Email actions

eeco_gift_cards_check_for_expired()

Check for expired gift cards and update their status

eeco_gift_cards_check_for_expired() : mixed
Return values
mixed

Search results