Skip to content

Instantly share code, notes, and snippets.

View thadallender's full-sized avatar

Thad Allender thadallender

View GitHub Profile
@thadallender
thadallender / sell-media-below-buy-button.php
Last active August 25, 2016 04:35
Show a link to checkout below the buy button for Sell Media
<?php
/**
* Plugin Name: Sell Media Below Buy Button
* Plugin URI: http://graphpaperpress.com/plugins/sell-media/
* Description: An example below button code plugin for Sell Media.
* Version: 1.0
* Author: Graph Paper Press
* Author URI: http://graphpaperpress.com
* Author Email: support@graphpaperpress.com
* Text Domain: sell_media
@thadallender
thadallender / tw-purchase-text.php
Created October 15, 2016 14:43
Theme.Works change Purchase text
<?php
/**
* Changes the purchase text in Theme.Works e-commerce homepage section
*/
function tw_change_ecommerce_purchase_text() {
return 'bestel';
}
add_filter( 'tw_ecommerce_purchase_text', 'tw_change_ecommerce_purchase_text' );
@thadallender
thadallender / sell-media-keyword-migration.php
Created November 3, 2016 02:32
Sell Media Keyword Migration
<?php
/**
* Plugin Name: Sell Media Keyword Migration
* Plugin URI: http://graphpaperpress.com/
* Description: An extension for migrating keywords in Sell Media to attachments
* Version: 1.0.0
* Author: Graph Paper Press
* Author URI: http://graphpaperpress.com
* Author Email: support@graphpaperpress.com
* License: GPL
@thadallender
thadallender / vs-wp-starter-content.php
Last active February 26, 2021 07:39
WordPress theme starter content with custom post type and postmeta integration
<?php
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function aperture_setup() {