Filter hooks
thwcfe_force_enqueue_checkout_public_scripts
apply_filters('thwcfe_force_enqueue_checkout_public_scripts', false);
Parameters
Boolean valueUsage
add_filter('thwcfe_force_enqueue_checkout_public_scripts', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_debug_mode
apply_filters('thwcfe_debug_mode', false);
Parameters
Boolean valueUsage
add_filter(‘thwcfe_debug_mode’, ‘__return_true’);Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_enqueue_script_in_footer
apply_filters('thwcfe_enqueue_script_in_footer', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_debug_mode', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_include_jquery_ui_i18n
apply_filters( 'thwcfe_include_jquery_ui_i18n', TRUE );
Parameters
Boolean valueUsage
add_filter('thwcfe_include_jquery_ui_i18n', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_select2_i18n_languages
apply_filters('thwcfe_select2_i18n_languages', false);
Parameters
empty arrayUsage
add_filter('thwcfe_select2_i18n_languages', $languages_array);
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_force_register_date_picker_script
apply_filters('thwcfe_force_register_date_picker_script', false);
Parameters
Boolean valueUsage
add_filter('thwcfe_force_register_date_picker_script', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_date_picker_field_readonly
apply_filters('thwcfe_date_picker_field_readonly', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_date_picker_field_readonly', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_date_picker_notranslate
apply_filters('thwcfe_date_picker_notranslate', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_date_picker_notranslate', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_time_picker_restrict_slots_for_same_day (???)
apply_filters( 'thwcfe_time_picker_restrict_slots_for_same_day', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_time_picker_restrict_slots_for_same_day', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_enable_conditions_based_on_review_panel_fields - DPR
apply_filters( 'thwcfe_enable_conditions_based_on_review_panel_fields', $enable_conditions_payment_shipping);
Parameters
Boolean valueUsage
add_filter('thwcfe_enable_conditions_based_on_review_panel_fields', '__return_true');
Default value
Based on value in advance settings.Location
public/class-thwcfe-public-checkout.php
thwcfe_change_event_disabled_fields (????)
field names of disabled fields (examples - conditionally hide & show fields) that don’t have a change event. Return comma separated field names.apply_filters('thwcfe_change_event_disabled_fields', '');
Parameters
String (Comma seperated field names)Usage
add_filter('thwcfe_change_event_disabled_fields', 'change_event_disabled_fields');
function change_event_disabled_fields(){
return 'field_name_1,field_name_2';
}
Default value
Empty stringLocation
public/class-thwcfe-public-checkout.php
thwcfd_woocommerce_checkout_fields_hook_priority
apply_filters('thwcfd_woocommerce_checkout_fields_hook_priority', 1000);
Parameters
Integer valueUsage
add_filter('thwcfd_woocommerce_checkout_fields_hook_priority', 'th_34hf_function');
function th_34hf_function(){
return 9999;
}
Default value
1000Location
public/class-thwcfe-public-checkout.php
thwcfe_override_country_locale
apply_filters('thwcfe_override_country_locale', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_override_country_locale', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_cart_product_categories
apply_filters('thwcfe_cart_product_categories', array_values($cart['categories']);
Parameters
Array (array of categories slug)
Usage
add_filter(‘thwcfe_cart_product_categories’, ‘override_cart_category’ , 10, 1); function override_cart_category($categories){// Remove an array element by search & find array key of slug
if (($key = array_search('category-slug', $categories)) !== false) {
unset($categories[$key]);
}
// Add new category
array_push($categories, "another-category-slug");
return $categories; }
Default value
Current cart items category in array format
Location
includes/utils/class-thwcfe-utils.php
thwcfe_ignore_wpml_translation_for_product_category
apply_filters('thwcfe_ignore_wpml_translation_for_product_category', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_ignore_wpml_translation_for_product_category', '__return_true');
Default value
trueLocation
public/class-thwcfe-public-checkout.php
thwcfe_use_default_fields_if_empty(internal pourpose only)
If shipping and billing fields are empty, use default billing and shipping fields.apply_filters('thwcfe_use_default_fields_if_empty', false, $section_name);
- Boolean
- $section_name - section name (‘billing’ or ‘shipping’)
Usage
add_filter('thwcfe_use_default_fields_if_empty', 'th_3df5func', 10, 2);
function th_3df5func($value, $section_name){
if($section_name == 'billing'){
$value = true;
}
return $value;
}
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_ignore_address_field_changes (** - need to change hook name)
apply_filters('thwcfe_ignore_address_field_changes', false));
Parameters
Boolean valueUsage
add_filter('thwcfe_ignore_address_field_changes', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_skip_default_address_fields_override
apply_filters('thwcfe_skip_default_address_fields_override', false);
Parameters
Boolean valueUsage
add_filter('thwcfe_skip_default_address_fields_override', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-checkout.php
thwcfe_address_field_override_with *******?????
apply_filters('thwcfe_address_field_override_with', 'billing');
Parameters
StringUsage
add_filter('thwcfe_address_field_override_with', 'address_field_override_with_shipping', 10, 1);
function address_field_override_with_shipping($section){
$section = 'shipping';
return $section;
}
Default value
‘billing’Location
public/class-thwcfe-public-checkout.php
thwcfe_address_field_override_placeholder
apply_filters('thwcfe_address_field_override_placeholder', true, $country);
Parameters
- Boolean value
- $country
Usage
add_filter(‘thwcfe_address_field_override_placeholder’, ‘disable_address_field_override_placeholder’ , 10, 2); function disable_address_field_override_placeholder($value, $country){if($country == 'US'){
$value = false;
}
return $value; }
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_address_field_override_label
apply_filters('thwcfe_address_field_override_label', true, $country);
Parameters
- Boolean value
- $country
Usage
add_filter('thwcfe_address_field_override_label', 'disable_address_field_override_label' , 10, 2);
function disable_address_field_override_label($value, $country){
if($country == 'US'){
$value = false;
}
return $value;
}
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_address_field_override_required
apply_filters('thwcfe_address_field_override_required', false, $country);
Parameters
- Boolean value
- $country
Usage
add_filter('thwcfe_address_field_override_required', 'disable_address_field_override_required' , 10, 2);
function disable_address_field_override_required($value, $country){
if($country == 'US'){
$value = true;
}
return $value;
}
Default value
FalseLocation
public/class-thwcfe-public-checkout.php
thwcfe_address_field_override_priority
apply_filters('thwcfe_address_field_override_priority', true, $country);
Parameters
- Boolean value
- $country
Usage
add_filter('thwcfe_address_field_override_priority', 'disable_address_field_override_priority' , 10, 2);
function disable_address_field_override_priority($value, $country){
if($country == 'US'){
$value = false;
}
return $value;
}
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_custom_section_positions
apply_filters('thwcfe_custom_section_positions', array());
Parameters
arrayUsage
add_filter('thwcfe_custom_section_positions', 'thwcfe_custom_section_positions');
function thwcfe_custom_section_positions($custom){
$custom = array(
'hook_name' => 'title';
);
return $custom;
}
Default value
Empty arrayLocation
public/class-thwcfe-public-checkout.php
thwcfe_disabled_hooks
apply_filters('thwcfe_disabled_hooks', $dis_hooks);
Parameters
Array (array of disabled hooks)Usage
add_filter('thwcfe_disabled_hooks', 'th_modify_disabled_hooks', 10, 1);
function th_modify_disabled_hooks($hooks){
return $hooks;
}
Default value
An array of disabled hook as per different conditions.
Location
public/class-thwcfe-public-checkout.php
thwcfe_disabled_sections
apply_filters('thwcfe_disabled_sections', $dis_sections);
Parameters
ArrayUsage
add_filter('thwcfe_disabled_sections', 'thwcfe_remove_disabled_sections');
function thwcfe_remove_disabled_sections($sections){
$sections[] = 'section_name';
return $sections;
}
Default value
Empty arrayLocation
public/class-thwcfe-public-checkout.php
thwcfe_disabled_fields
apply_filters('thwcfe_disabled_fields', $dis_fields);
Parameters
ArrayUsage
add_filter('thwcfe_disabled_fields', 'thwcfe_remove_disabled_fields');
function thwcfe_remove_disabled_fields($fields){
$fields[] = 'field_name';
return $fields;
}
Default value
Empty ArrayLocation
public/class-thwcfe-public-checkout.php
thwcfe_woocommerce_checkout_user_meta_posted_value_$key
apply_filters( 'thwcfe_woocommerce_checkout_user_meta_posted_value_'.$key, $value, $customer_id, $posted );
Parameters
$value - string $customer_id - integer $posted - ArrayUsage
add_filter('thwcfe_woocommerce_checkout_user_meta_posted_value_field_name', 'thwcfe_change_submited_value_of_field', 10, 3);
function thwcfe_change_submited_value_of_field($value, $customer_id, $posted){
$value = 'changed value';
return $value;
}
Default value
$posted - Checkout dataLocation
public/class-thwcfe-public-checkout.php
thwcfe_woocommerce_checkout_order_meta_posted_value_$key
apply_filters( 'thwcfe_woocommerce_checkout_order_meta_posted_value_'.$key, $value, $order_id, $posted );
Parameters
$value - string $order_id - integer $posted - arrayUsage
add_filter('thwcfe_woocommerce_checkout_order_meta_posted_value_field_name', 'thwcfe_change_submited_order_value_of_field', 10, 3);
function thwcfe_change_submited_order_value_of_field($value, $order_id, $posted){
$value = 'changed value';
return $value;
}
Default value
$posted - Checkout dataLocation
public/class-thwcfe-public-checkout.php
thwcfe_force_wp_session
apply_filters('thwcfe_force_wp_session', false);
Parameters
Boolean valueUsage
add_filter('thwcfe_force_wp_session', '__return_true');
Default value
FalseLocation
public/class-thwcfe-public-checkout.php
thwcfe_force_start_session
apply_filters('thwcfe_force_start_session', false);
Parameters
Boolean valueUsage
add_filter('thwcfe_force_wp_session', '__return_true');
Default value
FalseLocation
public/class-thwcfe-public-checkout.php
thwcfe_checkout_field_extra_price_$name
apply_filters('thwcfe_checkout_field_extra_price_'.$name, $price, $value);
Parameters
$price - Float number
$value - string
Usage
add_filter('thwcfe_checkout_field_extra_price_field_name', 'thwcfe_change_value_of_price_field', 10, 2);
function thwcfe_change_value_of_price_field($price, $value){
$price = 20; // New Price
return $price;
}
Default value
Field price
Location
public/class-thwcfe-public-checkout.php
thwcfe_dynamic_price_quantity (???????)
apply_filters('thwcfe_dynamic_price_quantity', $qty, $name);
Parameters
$qty - Integer
$name - String
Usage
add_filter('thwcfe_dynamic_price_quantity', 'thwcfe_change_quantity_added_in_field', 10, 2);
function thwcfe_change_quantity_added_in_field($qty, $name){
if($name == 'test_field'){
$qty = 2;
}
return $qty;
}
Default value
false
Location
public/class-thwcfe-public-checkout.php
thwcfe_checkout_field_extra_cost_$name
apply_filters('thwcfe_checkout_field_extra_cost_'.$name, $fprice, $value);
Parameters
$fprice = Integer or float $value = stringUsage
add_filter('thwcfe_checkout_field_extra_cost_your_field_name', 'th_modify_checkout_field_extra_cost', 10, 2);
function th_modify_checkout_field_extra_cost($field_price, $field_value){
return $field_price;
}
Default value
Field price
Location
public/class-thwcfe-public-checkout.php
thwcfe_show_tax_label_in_cart_totals_fee_html
apply_filters('thwcfe_show_tax_label_in_cart_totals_fee_html', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_show_tax_label_in_cart_totals_fee_html', '__return_false');
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_country_hidden_field_override_default_value (???????)
apply_filters('thwcfe_country_hidden_field_override_default_value', false, $key, $value)
Parameters
Usage
Default value
Location
public/class-thwcfe-public-checkout.php
thwcfe_nl2br_custom_field_value ????????
apply_filters('thwcfe_nl2br_custom_field_value', true);
Parameters
Usage
Default value
Location
public/class-thwcfe-public-checkout.php
thwcfe_esc_attr_custom_field_label_thankyou_page
apply_filters('thwcfe_esc_attr_custom_field_label_thankyou_page', false)
Parameters
BooleanUsage
apply_filters(‘thwcfe_esc_attr_custom_field_label_thankyou_page’, ‘__return_true’);Default value
FalseLocation
public/class-thwcfe-public-checkout.php
thwcfe_clickable_filename_in_order_view
apply_filters('thwcfe_clickable_filename_in_order_view', true, $key);
Parameters
$key - field nameUsage
add_filter('thwcfe_clickable_filename_in_order_view', '__return_false');
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_align_field_value_in_separate_lines
apply_filters('thwcfe_align_field_value_in_separate_lines', false);
Parameters
BooleanUsage
add_filter('thwcfe_align_field_value_in_separate_lines', '__return_true');
Default value
FalseLocation
public/class-thwcfe-public-checkout.php
thwcfe_view_order_customer_details_table_view
apply_filters( 'thwcfe_view_order_customer_details_table_view', true );
Parameters
BooleanUsage
add_filter('thwcfe_view_order_customer_details_table_view', '__return_false');
Default value
TrueLocation
public/class-thwcfe-public-checkout.php
thwcfe_myaccount_address_fields_hook_priority
apply_filters('thwcfe_myaccount_address_fields_hook_priority', 1100);
Parameters
Integer valueUsage
add_filter('thwcfe_myaccount_address_fields_hook_priority', 'myaccount_address_fields_hook_priority');
function myaccount_address_fields_hook_priority($priority){
return $priority;
}
Default value
1100Location
public/class-thwcfe-public-myaccount.php
thwcfe_myaccount_display_hidden_field_as_text_field
apply_filters('thwcfe_myaccount_display_hidden_field_as_text_field', false);
Parameters
BooleanUsage
add_filter('thwcfe_myaccount_display_hidden_field_as_text_field', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-myaccount.php
thwcfe_ignore_custom_fields_in_address_to_edit
apply_filters('thwcfe_ignore_custom_fields_in_address_to_edit', false)
Parameters
Boolean valueUsage
add_filter('thwcfe_ignore_custom_fields_in_address_to_edit', '__return_true');
Default value
falseLocation
public/class-thwcfe-public-myaccount.php
thwcfe_edit_address_ignore_row_split
apply_filters('thwcfe_edit_address_ignore_row_split', true);
Parameters
Boolean valueUsage
add_filter('thwcfe_edit_address_ignore_row_split', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-myaccount.php
thwcfe_edit_address_form_enctype_multipart ?????????
apply_filters('thwcfe_edit_address_form_enctype_multipart', false);
Parameters
Boolean valueUsage
Default value
falseLocation
public/class-thwcfe-public-myaccount.php
thwcfe_show_in_my_account_page
apply_filters('thwcfe_show_in_my_account_page', true, $key);
Parameters
$key - string (field_name)Usage
add_filter('thwcfe_show_in_my_account_page', 'er3_show_in_my_account_page', 10, 2);
function er3_show_in_my_account_page($show, $key){
return $show;
}
Default value
TrueLocation
public/class-thwcfe-public-myaccount.php
thwcfe_edit_account_enable_file_support
apply_filters('thwcfe_edit_account_enable_file_support', true);
enctype="multipart/form-data"
attribute in edit account form.
Parameters
BooleanUsage
add_filter('thwcfe_edit_account_enable_file_support', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-myaccount.php
thwcfe_show_section_in_my_account_page
apply_filters('thwcfe_show_section_in_my_account_page', true, $sname);
Parameters
$sname - string (section name)Usage
add_filter('thwcfe_show_section_in_my_account_page', '__return_false');
Default value
trueLocation
public/class-thwcfe-public-myaccount.php
thwcfe_show_section_title_in_my_account_page
apply_filters('thwcfe_show_section_title_in_my_account_page', $show_section_title, $sname);
Parameters
$show_section_title - string $sname - stringUsage
add_filter('thwcfe_show_section_title_in_my_account_page', 'er3_show_in_my_account_page', 10, 2);
function er3_show_in_my_account_page($show_section_title, $section_name){
return $show_section_title;
}
Default value
True or false as per section settings.Location
public/class-thwcfe-public-myaccount.php
thwcfe_skip_address_fields_override_with_locale
apply_filters('thwcfe_skip_address_fields_override_with_locale', false)
Parameters
Boolean valueUsage
add_filter('thwcfe_skip_address_fields_override_with_locale', '__return_true');
Default value
falseLocation
public/class-thwcfe-public.php
thwcfe_show_edit_address_form_field_$key
apply_filters('thwcfe_show_edit_address_form_field_'.$key, true, $sname, $field);
Parameters
Usage
Default value
Location
public/class-thwcfe-public.php
thwcfe_file_upload_maxsize
apply_filters('thwcfe_file_upload_maxsize', $maxsize, $name);
Parameters
$maxsize - Integer $name - stringUsage
add_filter('thwcfe_file_upload_maxsize', 'm35rt_file_upload_maxsize', 10, 2);
function m35rt_file_upload_maxsize($maxsize, $name){
return $maxsize;
}
Default value
Value as per field setting.Location
public/class-thwcfe-public.php
thwcfe_file_upload_accepted_file_types
apply_filters('thwcfe_file_upload_accepted_file_types', $accept, $name);
Parameters
$accept - array $name - stringUsage
add_filter('thwcfe_file_upload_accepted_file_types', 'm35rt_file_upload_accepted_file_types', 10, 2);
function m35rt_file_upload_accepted_file_types($accept, $name){
return $accept;
}
Default value
Value as per field settingsLocation
public/class-thwcfe-public.php
thwcfe_ignore_fields
apply_filters('thwcfe_ignore_fields', array());
Parameters
arrayUsage
add_filter('thwcfe_ignore_fields', 'thwcfe_ignore_field_array');
function thwcfe_ignore_field_array($fields){
$fields = array('field_name_1, field_name_2, field_name_3');
return $fields;
}
Default value
empty arrayLocation
public/class-thwcfe-public.php
thwcfe_woocommerce_form_field_value
apply_filters( 'thwcfe_woocommerce_form_field_value', $value, $key );
Parameters
$value - string $key - stringUsage
add_filter('thwcfe_woocommerce_form_field_value', 'change_new_value_to_field', 10, 2);
function change_new_value_to_field($value, $key){
if($key == 'field_name'){
$value = 'new value';
}
return $value;
}
Default value
Value as per submitted dataLocation
public/class-thwcfe-public.php
woocommerce_form_field_args
apply_filters( 'woocommerce_form_field_args', $args, $key, $value );
Parameters
$args - array $key - string $value - stringUsage
add_filter('woocommerce_form_field_args', 'change_form_field_args', 10, 3);
function change_form_field_args($args, $key, $value){
$arg = // new arg for the field;
return $args;
}
Default value
array as per field settings.
Location
public/class-thwcfe-public.php
thwcfe_disable_checkout_field_autocomplete
apply_filters('thwcfe_disable_checkout_field_autocomplete', false, $key);
Parameters
Boolean
$key - string
Usage
add_filter('thwcfe_disable_checkout_field_autocomplete', 'change_autocomplete_parameter', 10, 2);
function change_autocomplete_parameter($flag, $key){
if($flag == 'field_name'){
$flag = true;
}
return $flag;
}
Default value
false
Location
public/class-thwcfe-public.php
thwcfe_is_readonly_field_$key
apply_filters(‘thwcfe_is_readonly_field_’.$key, false)); Make field as read only.Parameters
Boolean valueUsage
add_filter('thwcfe_is_readonly_field_your_field', 'm35rt_read_only_field');
function m35rt_file_upload_maxsize($read_only){
return $read_only;
}
Default value
falseLocation
public/class-thwcfe-public.php
thwcfe_display_field_description_below_label
apply_filters('thwcfe_display_field_description_below_label', false, $key)
Parameters
Boolean $key - stringUsage
add_filter('thwcfe_display_field_description_below_label', 'm35rt_display_field_description_below_label', 10, 2);
function m35rt_display_field_description_below_label($show_below, $key){
return $show_below;
}
Default value
falseLocation
public/class-thwcfe-public.php
thwcfe_input_field_options_$key
apply_filters( 'thwcfe_input_field_options_'.$key, $args['options_object'] );
Parameters
ObjectUsage
add_filter('thwcfe_input_field_options_your_field', 'm34er_input_field_options');
function m34er_input_field_options($_Object){
return $_Object;
}
Default value
Field settingsLocation
public/class-thwcfe-public.php
thwcfe_checkboxgroup_options_per_line
apply_filters('thwcfe_checkboxgroup_options_per_line', 1, $key);
Parameters
Usage
Default value
Location
public/class-thwcfe-public.php
thwcfe_input_field_options
apply_filters( 'thwcfe_input_field_options', $args['options_object'], $key );
Parameters
$args[‘options_object’] - object $key - stringUsage
add_filter('thwcfe_input_field_options_your_field', 'm34er_input_field_options', 10, 2);
function m34er_input_field_options($_Options, $key){
return $_Options;
}
Default value
Field settingsLocation
public/class-thwcfe-public.php
thwcfe_min_date_date_picker_$key
apply_filters( 'thwcfe_min_date_date_picker_'.$key, $minDate );
Parameters
$minDate - IntegerUsage
add_filter('thwcfe_min_date_date_picker_your_field_name', 'change_mindate_parameter');
function change_mindate_parameter($min_date){
return $min_date;
}
Default value
Value as per field setting.Location
public/class-thwcfe-public.php
thwcfe_max_date_date_picker_$key
apply_filters( 'thwcfe_max_date_date_picker_'.$key, $maxDate );
Parameters
IntegerUsage
add_filter('thwcfe_max_date_date_picker_your_field_name', 'change_maxdate_parameter');
function change_maxdate_parameter($max_date){
return $max_date;
}
Default value
Value as per field setting.Location
public/class-thwcfe-public.php
thwcfe_disabled_days_date_picker_$key
apply_filters( 'thwcfe_disabled_days_date_picker_'.$key, $disabledDays );
Parameters
Coma seperated week days abbrivationUsage
add_filter('thwcfe_disabled_days_date_picker_your_field_name', 'th34_override_disabled_days');
function th34_override_disabled_days($disabled_days){
return $disabled_days;
}
Default value
Value as per field setting.Location
public/class-thwcfe-public.php
thwcfe_disabled_dates_date_picker_$key
apply_filters( 'thwcfe_disabled_dates_date_picker_'.$key, $disabledDates );
Parameters
Coma seperated dates in yyyy-mm-dd format.Usage
add_filter('thwcfe_disabled_dates_date_picker_your_field_name', 'th34_override_disabled_dates');
function th34_override_disabled_dates($disabled_dates){
write_log($disabled_dates);
return $disabled_dates;
}
Default value
Value as per field setting.Location
public/class-thwcfe-public.php
thwcfe_date_picker_first_day
apply_filters( 'thwcfe_date_picker_first_day', 0, $key );
Parameters
Intiger - Week day number $key - StringUsage
add_filter('thwcfe_date_picker_first_day', 'change_new_start_day', 10, 2);
function change_new_start_day($value, $key){
return $value;
}
Default value
0 - (Sunday)Location
public/class-thwcfe-public.php
thwcfe_min_time_time_picker_$key
apply_filters( 'thwcfe_min_time_time_picker_'.$key, $args['min_time'] );
Parameters
Time in 12 hour formatUsage
add_filter('thwcfe_min_time_time_picker_your_field_name', 'change_min_time_picker', 10, 1);
function change_min_time_picker($min_time){
return $min_time;
}
Default value
12:00am / value as per field settingsLocation
public/class-thwcfe-public.php
thwcfe_max_time_time_picker_$key
apply_filters( 'thwcfe_max_time_time_picker_'.$key, $args['max_time'] );
Parameters
Time in 12 hour formatUsage
add_filter('thwcfe_max_time_time_picker_your_field_name', 'change_max_time_picker', 10, 1);
function change_max_time_picker($max_time){
return $max_time;
}
Default value
11:30pm / value as per field settingsLocation
public/class-thwcfe-public.php
thwcfe_start_time_time_picker_$key
apply_filters( 'thwcfe_start_time_time_picker_'.$key, $args['start_time'] );
Parameters
String - (Hour & minutes)Usage
add_filter('thwcfe_start_time_time_picker_your_field_name', 'er34t_start_time_time_picker');
function er34t_start_time_time_picker($start_time){
return $start_time;
}
Default value
FalseLocation
public/class-thwcfe-public.php
thwcfe_time_step_time_picker_$key
apply_filters( 'thwcfe_time_step_time_picker_'.$key, $args['time_step'] );
Parameters
Integer - (Minutes as integer)Usage
add_filter('thwcfe_time_step_time_picker_your_field_name', 'we34r_change_time_step');
function we34r_change_time_step($time_step){
return $time_step;
}
Default value
30Location
public/class-thwcfe-public.php
thwcfe_linked_date_time_picker_$key
apply_filters( 'thwcfe_linked_date_time_picker_'.$key, $args['linked_date'] );
Parameters
String (field name)Usage
add_filter( 'thwcfe_linked_date_time_picker_your_field_name', 'qs325_link_date_picker_time_picker' );
function qs325_link_date_picker_time_picker($date_picker_field_name){
return $date_picker_field_name;
}
Default value
EmptyLocation
public/class-thwcfe-public.php
thwcfe_my-account_file_name_prefix
apply_filters('thwcfe_my-account_file_name_prefix', '', $key);
Parameters
Empty string $key - StringUsage
add_filter( 'thwcfe_my-account_file_name_prefix', 'qs325_thwcfe_uploaded_file_name_prefix', 10, 2 );
function qs325_thwcfe_uploaded_file_name_prefix($prefix, $key){
return $prefix;
}
Default value
Empty stringLocation
public/class-thwcfe-public.php
thwcfe_woo_api_order_response_fields
apply_filters('thwcfe_woo_api_order_response_fields', $fields);
Parameters
- $fields (array)
Usage
add_filter('thwcfe_woo_api_order_response_fields', 'th_custom_function');
function th_custom_function(){
return array('field_1', 'field_2');
}
Default value
Empty arrayLocation
includes/compatibility/class-wcfe-wc-api-handler.php
The post Hooks – WooCommerce Checkout Field Editor appeared first on ThemeHigh.