Skip to content

Instantly share code, notes, and snippets.

View DanielSantoro's full-sized avatar

Danny Santoro DanielSantoro

View GitHub Profile
@DanielSantoro
DanielSantoro / embed.html
Created December 8, 2014 20:02
WooConf Embed
<iframe src="//fast.wistia.net/embed/iframe/11y61vysnv" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width="640" height="360"></iframe>
@DanielSantoro
DanielSantoro / doc-tag.php
Created December 9, 2014 16:17
Taxonomy to add Tag
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Tags', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Tag', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Tags', 'text_domain' ),
'all_items' => __( 'All Tags', 'text_domain' ),
'parent_item' => __( 'Parent Tags', 'text_domain' ),
'parent_item_colon' => __( 'Parent Tag:', 'text_domain' ),
@DanielSantoro
DanielSantoro / functions.php
Created January 6, 2015 13:38
Hide WooThemes Helper Notification
// Remove WooThemes Updater Notification from Admin
remove_action( 'admin_notices', 'woothemes_updater_notice' );
@DanielSantoro
DanielSantoro / function.php
Last active August 29, 2015 14:13
Winging it!
global $WC_Freshdesk_Integration;
remove_action('woocommerce_after_my_account', array( $this, 'support_tickets' ), 20 );
global $wpdb;
@DanielSantoro
DanielSantoro / style.css
Created January 18, 2015 19:18
Responsive Design CSS Framework
/*========== Mobile-First CSS Template ==========*/
/*========== danielsantoro.com ==========*/
/* Custom, specific to iPhone Retina. Less important. */
@media only screen and (min-width : 320px) {
/* This is a strange category, mainly because it only applies to certain iPhone models with Retina displays. Apple is strange in what they report as a "Pixel" on Retina screens, so to avoid your site looking cramped on iPhones then you can add styling here. This is a little bit of overkill, so feel free to nix this one if you don't have a specific model iPhone to test.
It inherits any stylesheets or lines that come before it. */
}
/* Extra Small Devices, Phones */
@DanielSantoro
DanielSantoro / functions.php
Created February 17, 2015 17:33
Header Before #2
// Moves Main Navigation to the top of the header
add_action( 'wp', 'tweak_nav_layout' );
function tweak_nav_layout() {
remove_action( ‘woo_top’,’woo_top_navigation’, 10 );
add_action( ‘woo_header_after’,’woo_top_navigation’, 10 );
}
@DanielSantoro
DanielSantoro / CustomerOrder-Example.txt
Created February 18, 2015 20:50
Customer Order Example - Plaintext Address Compressed
New customer order
You have received an order from Walter White. The order is as
follows:
****************************************************
Order number: 2747
Order link:
http://www.example.com/wp‐admin/post.php?post=2747&action=edit
Order date: 12th February 2015
Tubes and stuff
Pack 150g (#CMGFSMJB150)
@DanielSantoro
DanielSantoro / functions.php
Created March 6, 2015 17:46
Fix Force Sell Box Size
add_action('admin_head', 'fix-box-width');
function fix-box-width() {
echo '<style>
#s2id_force_sell_ids ul li input {width:229px;}
#s2id_force_sell_synced_ids ul li input {width:229px;}
</style>';
}
@DanielSantoro
DanielSantoro / systemstatus.txt
Created March 9, 2015 18:44
System Status Example
### WordPress Environment ###
Home URL: http://localhost/woo
Site URL: http://localhost/woo
WC Version: 2.3.5
WC Database Version: 2.3.5
Log Directory Writable: ✔ H:\xampp\htdocs\woo/wp-content/uploads/wc-logs/
WP Version: 4.1.1
WP Multisite: –
@DanielSantoro
DanielSantoro / UPS-Request.txt
Created March 12, 2015 17:21
Ticket 267320 UPS Request
<?xml version="1.0" ?>
<AccessRequest xml:lang='en-US'>
<AccessLicenseNumber>FCE98AD591DA2F25</AccessLicenseNumber>
<UserId>PitStopMarineJr</UserId>
<Password>Xboat22in2015</Password>
</AccessRequest>
<?xml version="1.0" ?>
<RatingServiceSelectionRequest>
<Request>
<TransactionReference>