wordpress - Custom Order Listing Page With WooCommerce -


i have created plugin has separate page order listing.. in looks same woocommerce's order listing page but. unable comments of order added custom post type wc_order_types after there no order listed.. showing empty table. ?

add_filter( 'wc_order_types',array($this,'add_wc_order_types'),10,3); public function add_wc_order_types($order_types,$type){     $order_types[] = wc_qd_pt;     return $order_types; } 

apply_filters( 'wc_order_types', $order_types, $for ); default wc_filters takes 2 parameters have asked 3 here add_filter( 'wc_order_types',array($this,'add_wc_order_types'),10,3); , again supplied 2.

visit http://docs.woothemes.com/wc-apidocs/source-function-wc_get_order_types.html#149 may this.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -