Skip to content

Instantly share code, notes, and snippets.

View smatplacid's full-sized avatar

Roman Hanzlik smatplacid

  • Berlin
  • 19:26 (UTC +02:00)
View GitHub Profile
@dennisnissle
dennisnissle / functions.php
Created August 17, 2018 09:01
Add your own invoice shortcode example
<?php
add_filter( 'wc_gzdp_invoice_shortcodes', 'my_child_add_invoice_shortcode', 10, 1 );
function my_child_add_invoice_shortcode( $shortcodes ) {
$shortcodes['example_shortcode_name'] = 'my_child_example_shortcode_name';
return $shortcodes;
}
function my_child_example_shortcode_name( $atts, $content = '' ) {
@ehnydeel
ehnydeel / unzip.php
Created February 3, 2014 16:30
PHP-Unzip
<?php
// The unzip script
// This script lists all of the .zip files in a directory
// and allows you to select one to unzip. Unlike CPanel's file
// manager, it _will_ overwrite existing files.
//
// To use this script, FTP or paste this script into a file in the directory
// with the .zip you want to unzip. Then point your web browser at this
// script and choose which file to unzip.