This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_paypal_icon', 'custom_woocommerce_paypal_icon') | |
function custom_woocommerce_paypal_icon( $url ) { | |
$url = 'http://yoursite,com/youriconurl.png'; | |
return $url; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_thankyou', 'my_custom_tracking' ); | |
function my_custom_tracking( $order_id ) { | |
// Lets grab the order | |
$order = wc_get_order( $order_id ); | |
/** | |
* Put your tracking code here | |
* You can get the order total etc e.g. $order->get_total(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: WooCommerce <enter name> Gateway | |
Plugin URI: http://woothemes.com/woocommerce | |
Description: Extends WooCommerce with an <enter name> gateway. | |
Version: 1.0 | |
Author: WooThemes | |
Author URI: http://woothemes.com/ | |
Copyright: © 2009-2011 WooThemes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display a thumbnail from YouTube based off the embed code saved in the | |
* video post format metabox used by the CF Post Formats plugin | |
* | |
* @link https://github.com/crowdfavorite/wp-post-formats | |
* @link http://stackoverflow.com/a/6382259 | |
*/ | |
global $post; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author: Dan Beaven | |
* Company: Firestorm Graphics | |
* Web: http://firestorm-graphics.com | |
*/ | |
* Released under the GPL license | |
* http://www.opensource.org/licenses/gpl-license.php | |
* | |
* This is an add-on for WordPress | |
* http://wordpress.org/ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom wp_link_pages() for Foundation 2 & 3; | |
//:::: Step 1 :::::: add the following to functions.php ::::::::::::::::::// | |
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// | |
<?php | |
add_action( 'reverie_page_links', 'reverie_page_links', 10, 1 ); | |
/** | |
* Modification of wp_link_pages() for custom styling for foundation 2 & 3 by Zurb for use within wordpress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$(function() { | |
$.fn.wptuts = function(options) { | |
var selector = $(this).selector; // Get the selector | |
// Set default options | |
var defaults = { | |
'preview' : '.preview-upload', | |
'text' : '.text-upload', | |
'button' : '.button-upload', | |
}; |
OlderNewer