Plugin API

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 from below.

Hooks: Filters

wpto_save_tab_array
applied to table edit screen. Add or remove table tab.
wpto_admin_tab_array
applied to table edit screen. Add or remove table admin tab.
wpto_form_tab_validation_[tab_name]
applied to table tab validation.
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_column_settings
Get all the columns settings as array.
wpto_enabled_column_array
Get all the enabled columns as array.
wpto_thumbs_size
Change the default thumbnail image size.
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
wpt_menu_capability
Change menu permission
wpt_supported_terms
Add or remove supported terms
wpto_action_start_table
wpto_action_table_wrapper_top
Top of the Table
wpto_add_to_cart_text
Add to cart text change
wpto_add_to_cart_url
Add to cart url control
wpto_additional_variable
Additional tab and CSS values as array
wpto_addnew_col_arr
Add/remove column type for add new column from bottom of the column tab
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_column_top
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_get_config_value
Handle config value which getting from get_option
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_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_supported_css_property
Add or remove CSS properties
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.