Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created November 26, 2013 21:45
Show Gist options
  • Save clifgriffin/7666827 to your computer and use it in GitHub Desktop.
Save clifgriffin/7666827 to your computer and use it in GitHub Desktop.
Enabling Genesis SEO Metabox on Shopp Products - http://clifgriffin.com/enabling-genesis-seo-metabox-on-shopp-products
<?php // skip this line, son
// Add Genesis Support to shopp_product Post Type
add_filter('shopp_product_supports', 'add_shopp_product_genesis_seo');
function add_shopp_product_genesis_seo ( $supports ) {
$supports[] = 'genesis-seo';
return $supports;
}
// Load Genesis Admin Script on Product Pages
if ( $_GET['page'] == "shopp-products" && isset($_GET['id']) ) {
add_action( 'admin_enqueue_scripts', 'genesis_load_admin_js' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment