Skip to content

Instantly share code, notes, and snippets.

View moghanbari's full-sized avatar
🏠
Working from home

Mo Ghanbari moghanbari

🏠
Working from home
View GitHub Profile
@moghanbari
moghanbari / functions.php
Last active August 29, 2015 14:28 — forked from jameskoster/functions.php
WooCommerce - Remove product data tabs
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
<?php
/**
* Order product collections by stock status, instock products first.
*/
class iWC_Orderby_Stock_Status
{
public function __construct()
{