Skip to content

Instantly share code, notes, and snippets.

<?php
// This is just a form sample
// Add a new section to WooCommerce > Settings > Products
function add_my_products_section( $sections ) {
$sections['tshirt_designer'] = __( 'T-Shirt Designer', 'my-textdomain' );
return $sections;
}
add_filter( 'woocommerce_get_sections_products', 'add_my_products_section' );
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@lavoiesl
lavoiesl / subdirectory_loader.php
Last active June 15, 2022 17:03
MU plugins subdirectory loader. Enables the loading of plugins sitting in mu-plugins (as folders)
<?php
/**
* Plugin Name: MU plugins subdirectory loader
* Plugin URI: https://gist.github.com/lavoiesl/6302907
* Description: Enables the loading of plugins sitting in mu-plugins (as folders)
* Version: 0.1
* Author: github@lavoie.sl
* Author URI: http://blog.lavoie.sl/
*