From b7c5665ef2230239e780bcfd87a24f7360884de0 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Sep 2020 12:48:36 +0600 Subject: [PATCH 1/4] readme.md file updated --- readme.md | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 7cc0b1c8..fc56486e 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,82 @@ +![Woo Product Table](https://raw.githubusercontent.com/codersaiful/woo-product-table/master/assets/images/wpt-logo.png) +# Woo Product Table - A WooCommerce Product Table Plugin +Woo Product Table has Tiny Shortcode. Easy to use and No need programming knowledge to use. Easily able to handle by Graphical User Interface. Just like following: +```[Product_Table id='123']``` -## Available Filter Hook List +## Features +- Withing a minute, User able to make a table and using shortcode, able to display anywhere +- Most popular and Fastest +- Developer Friendly - Available lots of Filter and Action Hook +- Support all theme and plugin +- Displaying product list as table within a minute. +- So many lots of features [Read More](https://www.wcproducttable.xyz/) + +### Available Filter Hook List https://docs.google.com/spreadsheets/d/1RwnzuupIYC-ao2R3_P3hZU__R-8nA3p7o2XoWWntNig/edit?usp=sharing -## Available Action Hook List -https://docs.google.com/spreadsheets/d/1aK2__VKTZbPk8HMTfck4RjdFq6Z7nV7yyZOnZ0hUkK4/edit?usp=sharing \ No newline at end of file +### Available Action Hook List +https://docs.google.com/spreadsheets/d/1aK2__VKTZbPk8HMTfck4RjdFq6Z7nV7yyZOnZ0hUkK4/edit?usp=sharing + +# Making a sample Addons +Here I will show, how a user can make a addon for **Woo Product Table** using our Hook. As example, I will show, how to add new column in our table. + +### Using hooks +There are variety of ways to add your custom code to manipulate code by hooks: +- To a custom child theme’s functions.php file. +- Using a plugin such as [Code Snippets](https://wordpress.org/plugins/code-snippets/) + +### Using action hooks +To execute your own code, you hook in by using the action hook ```do_action('action_name');```. Here is where to place your code: +``` +add_action( 'action_name', 'your_function_name' ); + +function your_function_name() { +// Your code +} +``` +## Start Procedure of adding new Collumn +First we have to our custom column in default column array using ```wpto_default_column_arr``` filter. +``` + + + Date: Wed, 16 Sep 2020 13:55:09 +0600 Subject: [PATCH 2/4] wpt_page_number name changed to wpto_page_number --- includes/shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/shortcode.php b/includes/shortcode.php index ba97c8bb..a5ae3cf5 100644 --- a/includes/shortcode.php +++ b/includes/shortcode.php @@ -425,7 +425,7 @@ function wpt_shortcode_generator( $atts = false ) { * Do Detect Page number, When Table will be display. * */ - $page_number = apply_filters( 'wpt_page_number', $page_number, $table_ID, $args, $column_settings, $enabled_column_array, $column_array ); + $page_number = apply_filters( 'wpto_page_number', $page_number, $table_ID, $args, $column_settings, $enabled_column_array, $column_array ); $args['paged'] =( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : $page_number; $args = array_merge( $args, $basics_args ); From c51473563157f28839a7755557a6a88796b6429c Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Sep 2020 14:41:21 +0600 Subject: [PATCH 3/4] spelling fix for wpto_inside_thecked_item_arr filter --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index a1ae62b9..8ba06746 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -242,7 +242,7 @@ function wpt_column_add_extra_items( $keyword, $column_settings, $columns_array, * To add Any Items for [Select multiple inner items] * Remember: It's only for Admin Product Table Edit. and data will debend on Save Only */ - $items = apply_filters( 'wpto_inside_thecked_item_arr', $items, $keyword, $column_settings, $columns_array ); + $items = apply_filters( 'wpto_inside_checked_item_arr', $items, $keyword, $column_settings, $columns_array ); if( is_array( $items ) && count( $items ) > 0 ){ //array_merge(array_flip($items),$columns_array) From 7cc5f0e99bfe8de46cdc6431477510d6a4ba0483 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Sep 2020 14:44:05 +0600 Subject: [PATCH 4/4] spelling fix for wpto_table_row_loc filter --- includes/row_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/row_manager.php b/includes/row_manager.php index cdcbfff1..1e49e536 100644 --- a/includes/row_manager.php +++ b/includes/row_manager.php @@ -1,7 +1,7 @@