WooCommerce: Add New Report Tab

add_filter(‘woocommerce_admin_reports’,’custom_tab’); function custom_tab($reports) { $reports[‘custom_tab’]= array( ‘title’=>__(‘Custom Reports’,’woocommerce’), ‘description’=> ‘WooCommerce Orders Listing Here…’, ‘hide_title’=> true, ‘callback’=>array(‘wc_admin_orders_customers’, ‘display_orders_list_cusotomers’) ); return $reports; }

Hide certain tags on Product Edit tag cloud

You can add a filter via the theme’s functions.php file (I’d recommend you use a child-theme for customizations, but that’s outside the scope of this question) The following will limit the tag-cloud in the wp-admin backend to the first 5. function tryme($tag_data){ $short_tag_data = array_slice($tag_data, 0, 5, true); return $short_tag_data; } add_filter( ‘wp_generate_tag_cloud_data’, ‘tryme’ ); … Read more

WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end

Since this isn’t getting much action I’ll put our band-aid fix as the current solution. Problem 1 Solution The added item meta data shows on the order confirmation page and does not show on the confirmation email. We solved this by utilizing the woocommerce_order_item_meta_end hook to add the extra item meta. Problem 2 Solution Adding … Read more