Introduction

This article for those developers who want to extend our Woo Product Table. In this article, we have tried to explain our plugin hooks known as actions and filters.

Hooks: Actions and Filters

Here we have listed our hooks. Find your desired hooks below.

Hooks: Filters

wpt_query_args
To change product table query arguments.
wpt_paginate_args
Get pagination arguments .
wpt_view_cart_text
To change default View Cart Text
view_cart_target
To change the view cart URL.
wpto_add_to_cart_text
Add to cart text change
wpto_add_to_cart_url
Add to cart url control
wpt_minifilter_taxonomy_name
To change product table mini-filter taxonomy label and name .
wpt_footer_cart_template
To change product table footer cart template no .
wpto_thumbs_size
Change the default thumbnail image size.
wpto_supported_css_property
Add or remove CSS properties
wpt_supported_terms
Add or remove supported terms
wpt_dokan_template
This filter will help you to Turn Off the Dokan template
wpt_table_show_top
This filter will help you to add custom text or blocks before table top.
wpto_column_arr
Get all the columns as array.
wpto_addnew_col_arr
Add/remove column type for add new column from bottom of the column tab
wpto_column_settings
Get all the columns settings as array.
wpto_column_top
wpto_enabled_column_array
Get all the enabled columns as array.
wpto_admin_tab_array
applied to table edit screen. Add or remove table admin tab.
wpto_save_tab_array
applied to table edit screen. Add or remove table tab.
wpto_form_tab_validation_[tab_name]
applied to table tab validation.
wpto_table_show
Before table tab, to show/hide table – true for showing, false for hiding table.
woocommerce_add_to_cart_validation
WC built-in filter to add cart of variation product.
woocommerce_attribute
WC builtin filter
woocommerce_loop_add_to_cart_link
Change add to cart link
woocommerce_quantity_input_max
Change max input
woocommerce_quantity_input_min
Change min input
wpo_row_manager_loc
To control the table rows you can use your custom row manager by replacing your own file.
wpt_action_variation
Change the global $product data
wpt_admin_form_top_links
Take control on top links
wpto_action_start_table
wpto_action_table_wrapper_top
Top of the Table
wpto_admin_tab_file_loc
Change the default tab file location
wpto_admin_tab_file_loc_{$tab}
Change tab specific file location
wpto_admin_tab_folder_dir
Change the default tab directory location
wpto_ajax_form_submit
To Disable ajax Save Option, Just need return false
wpto_before_row
wpto_blank_centent
wpto_blank_type_column
wpto_blank_type_column_{$keyword}
wpto_checkbox_validation
To on/off of table’s checkbox button on the top right of table.
wpto_column_bottom
wpto_additional_variable
Additional tab and CSS values as array
wpto_column_type
Handle type of items or column td
wpto_configuration_settings
Config page settings return array
wpto_curent_deteted_device
To manage detected device, such: mobile, tablet, desktop
wpto_default_column_arr
Add or remove default columns
wpto_default_configure
Change default configuration
wpto_default_enable_column_arr
Filter for Default Enabled Column
wpto_default_width_freeze_col
Default width handle for freeze column
wpto_defult_file_loc
To manage default file location, where a template file is not founded
wpto_element_bottom
wpto_element_top
wpto_extra_items_arr
To manage extra items inside table td based on $extra_items array
wpto_form_tab_validation_{$tab}
Tab validation default return true
wpto_inside_checked_item_arr
Manage selected items inside a columns
wpto_inside_item_arr
Manage inside all items’s array
wpto_inside_item_arr_{$keyword}
Manage inside all items’s array based on specific keyword
wpto_item_bottom
wpto_get_config_value
Handle config value which getting from get_option
wpto_item_dir_type_{$type}
WC built-in filter to add cart of variation product.
wpto_item_top
wpto_keyword_settings
To mange setting based on keyword for items and td
wpto_keyword_settings_{$keyword}
Manage special keyword’s settings
wpto_localize_data
To change short message warning message. Default message is: Please enter Short Message
wpto_page_number
To change default page numbers.
wpto_pagination_format
To change pagination’s default format
wpto_product_loop
Query object for product loop.
wpto_product_real_id
Variation product ID
wpto_responsive_col_arr
To set Default Column Array Key for All device
wpto_responsive_col_arr_{$devc_key}
To set Default Column Array Key for device specific
wpto_responsive_device_arr
Add/remove new device type
wpto_searchbox_order_show
To change taxonomy name for advance search box.
wpto_searchbox_taxonomy_name
To change taxonomy name For advance search box.
wpto_short_message_warning
To change short message warning message. Default message is: Please enter Short Message
wpto_shortcode_text
Change default shortcode text
wpto_tab_data_on_save
Check $_POST value when submit form
wpto_tab_data_on_save_{$tab}
Check $_POST value when submit form for each tab
wpto_table_query_args
To modify query arguments for products.
wpto_table_query_args_in_row
This is another query args filter inside row generator. Just before final query
wpto_table_row_loc
Manage table_row.php file location
wpto_table_tag_class_arr
To handle table tags class based on array.
wpto_table_wrapper_bottom
After table tag
wpto_template_folder
Able to change template root directory based on $keyword, $column_type, $table_ID, global $product.
wpto_template_loc
Manage File template location directory
wpto_template_loc_item_{$keyword}
Keyword/column keyword wise template file manage to change location file directory
wpto_template_loc_type_{$type}
Manage File template location directory based on specify type of item/column
wpto_wrapper_tag_class_arr
Table’s wrapper table class handle based on array. It’s returns an array.
wpt_change_table_id
To change default table ID attribute.
wpt_menu_capability
Change menu permission

Hooks: Action

woocommerce_quantity_input_step
Change min input
wpto_freeze_column
Freez Column
wpo_pro_feature_message
To show pro image
wpto_admin_basic_tab
All information for admin basic tab
wpo_pro_feature_message
To show pro image
wpto_admin_basic_tab_bottom
information for admin basic tab bottom
wpto_column_setting_form_{$keyword}
wpto column setting form keyword
wpto_column_setting_form_inside_{$keyword}
wpto column setting form inside keyword
wpto_column_setting_form
wpto column setting
wpto_admin_search_n_filter_tab
Admin search and filter tab
wpto_admin_configuration_panel_bottom
Admin configuration panel bottom
wpto_form_top
Add data in from top
wpto_form_tab_top_{$tab}
add content before each tab
wpto_admin_tab_{$tab}
Adding content to before of any admin Tab of Form
wpto_form_tab_bottom_{$tab}
add content at the bottom of specific tab
wpto_form_bottom
add content to the bottom of form