Skip to content

Instantly share code, notes, and snippets.

Working from home

Muhammad Bilal mbilalsiddique1

Working from home
View GitHub Profile
mbilalsiddique1 / woocommerce-custom-product-tabs.php
Last active December 25, 2022 09:48
WooCommerce Custom Product Tabs
View woocommerce-custom-product-tabs.php
add_filter( 'woocommerce_product_tabs', 'wc_add_custom_tabs' );
function wc_add_custom_tabs($tabs) {
// Add the custom tab
$tabs['specifiction_tab'] = array(
'title' => __('Specification', 'dcpd'),
'priority' => 50,
'callback' => 'wc_custom_tabs_cb'
mbilalsiddique1 / woocommerce-catalog-mode.php
Last active December 22, 2022 12:56
WooCommerce - Enable Catalouge Mode
View woocommerce-catalog-mode.php
Plugin Name: WooCommerce Catalog Mode
Plugin URI:
Description: This plugin enables catalog mode for WooCommerce and removes the shopping functionality.
Version: 1.0.0
Author: Muhammad Bilal
Author URI:
License: GPLv2 or later
Text Domain: woocommerce-catalog-mode