Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻

Michael Wender mwender

👨‍💻
View GitHub Profile
@anderly
anderly / woocommerce-add-custom-product-data-tab.php
Last active Mar 7, 2022
WooCommerce - Add Custom Product Data Tab
View woocommerce-add-custom-product-data-tab.php
// First Register the Tab by hooking into the 'woocommerce_product_data_tabs' filter
add_filter( 'woocommerce_product_data_tabs', 'add_my_custom_product_data_tab' );
function add_my_custom_product_data_tab( $product_data_tabs ) {
$product_data_tabs['my-custom-tab'] = array(
'label' => __( 'My Custom Tab', 'my_text_domain' ),
'target' => 'my_custom_product_data',
);
return $product_data_tabs;
}
View vim_cheatsheet.md

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close