Eeco_Gift_Cards_Settings
in package
Table of Contents
- $settings : mixed
- settings keys
- $meta_keys : mixed
- meta keys
- __construct() : mixed
- binding actions
- custom_fields() : mixed
- add product custom fields
- eeco_gift_cards_pointer_script() : mixed
- Add pointer function and script
- get_settings() : array<string|int, mixed>
- returns the settings
- load_assets() : mixed
- load admin assets
- offline_gift_card_column_data() : mixed
- offline gift card custom column data
- offline_gift_card_columns() : array<string|int, mixed>
- custom columns for offline gift card
- online_gift_card_column_data() : mixed
- online gift card custom column data
- online_gift_card_columns() : array<string|int, mixed>
- custom columns
- register_settings() : mixed
- register gift card settings
- save_custom_fields() : mixed
- save product custom field data
Properties
$settings
settings keys
protected
static mixed
$settings
= array('eeco_gift_cards_prefix' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_id_type' => array('type' => 'string', 'default' => 'numeric', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_id_range_min' => array('type' => 'integer', 'default' => 0, 'sanitize_callback' => 'intval'), 'eeco_gift_cards_taxes' => array('type' => 'boolean', 'default' => rue), 'eeco_gift_cards_license_key' => array('type' => 'string', 'default' => ''), 'eeco_gift_cards_pdf_prefix' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_pdf_logo' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_pdf_logo_offline' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_background_color_online' => array('type' => 'string', 'default' => ''), 'eeco_gift_cards_background_color_offline' => array('type' => 'string', 'default' => ''), 'eeco_gift_cards_font_color_online' => array('type' => 'string', 'default' => ''), 'eeco_gift_cards_font_color_offline' => array('type' => 'string', 'default' => ''), 'eeco_gift_cards_pdf_customer_service_email' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_pdf_customer_service_phonenumber' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_instructions_online' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_instructions_offline' => array('type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field'), 'eeco_gift_cards_myaccount_slug' => array('type' => 'string', 'default' => 'gift-cards', 'sanitize_callback' => 'sanitize_text_field'))
$meta_keys
meta keys
private
mixed
$meta_keys
= array('_gift_card_expires_value', '_gift_card_expires_unit', '_gift_card_min_price', '_gift_card_rec_price', '_gift_card_max_price', '_gift_card_enable_custom_message', '_gift_card_enable_scheduled_delivery')
Methods
__construct()
binding actions
public
__construct() : mixed
Return values
mixed —custom_fields()
add product custom fields
public
custom_fields() : mixed
Return values
mixed —eeco_gift_cards_pointer_script()
Add pointer function and script
public
eeco_gift_cards_pointer_script() : mixed
Return values
mixed —get_settings()
returns the settings
public
static get_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —Settings
load_assets()
load admin assets
public
load_assets() : mixed
Return values
mixed —offline_gift_card_column_data()
offline gift card custom column data
public
offline_gift_card_column_data(mixed $column_name, int $post_id) : mixed
Parameters
- $column_name : mixed
- $post_id : int
-
The post id
Return values
mixed —offline_gift_card_columns()
custom columns for offline gift card
public
offline_gift_card_columns(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
-
The table columns
Return values
array<string|int, mixed> —Filtered columns
online_gift_card_column_data()
online gift card custom column data
public
online_gift_card_column_data(mixed $column_name, int $post_id) : mixed
Parameters
- $column_name : mixed
- $post_id : int
-
The post id
Return values
mixed —online_gift_card_columns()
custom columns
public
online_gift_card_columns(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
-
The table columns
Return values
array<string|int, mixed> —Filtered columns
register_settings()
register gift card settings
public
register_settings() : mixed
Return values
mixed —save_custom_fields()
save product custom field data
public
save_custom_fields(int $post_id) : mixed
Parameters
- $post_id : int
-
The post id