Enabling Genesis SEO Metabox on Shopp Products - http://clifgriffin.com/enabling-genesis-seo-metabox-on-shopp-products
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 // 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