Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102244

How are table lists rendered in Woocommerce?

$
0
0

Replies: 1

Hello,

I am trying to figure out how the table lists (orders, products, coupons) are rendered in Woo. There is a class WC_Admin_List_Table_Products that extends abstract WC_Admin_List_Table. Within that class there are of course methods such as define_columns, prepare_row_data, render_columns etc. Instance of a given class is created in class WC_admin_post_types. So far so good. But sole creation of class instance is not enough to display the table list. BTW method display from WP_List_table is not available as WC_Admin_List_Table is an orphan and does not extend Wp_list_table.
I want to create almost exact copy of the product table list and do not want to render table and all the stuff manually.


Viewing all articles
Browse latest Browse all 102244

Trending Articles