Skip to content

Instantly share code, notes, and snippets.

View tylerdigital's full-sized avatar

Nathan Tyler tylerdigital

View GitHub Profile
@tylerdigital
tylerdigital / gist:2027315
Created March 13, 2012 06:50
woothemes ping home issue
// In Canvas admin-interface.php
// executed on main theme options page
if ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] == 'woothemes' ) {
if ( get_option( 'framework_woo_theme_version_checker' ) == 'true' ) { add_action( 'admin_notices', 'woo_theme_update_notice', 10 ); }
// Which calls theme update notice (if it's not disabled)
if ( ! function_exists( 'woo_theme_update_notice' ) ) {
function woo_theme_update_notice () {
$theme_data = get_theme_data( get_template_directory() . '/style.css' );