Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Last active December 26, 2015 13:29
Show Gist options
  • Save barryhughes/7158484 to your computer and use it in GitHub Desktop.
Save barryhughes/7158484 to your computer and use it in GitHub Desktop.
Fix for WP 3.7 / Shopp 1.2.9 storefront compatibility issue. The opening <?php tag is purely for nice Gist formatting, it won't generally be needed if this is dropped into an existing functions.php file
<?php
add_action('shopp_storefront_init', 'shopp_storefront_wp37_compat');
function shopp_storefront_wp37_compat() {
add_filter('archive_template', array(ShoppStorefront(), 'pages'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment