Skip to content

Instantly share code, notes, and snippets.

@foxydot
Created February 19, 2014 19:28
Show Gist options
  • Save foxydot/9099693 to your computer and use it in GitHub Desktop.
Save foxydot/9099693 to your computer and use it in GitHub Desktop.
Filter out Better WordPress Security "bug"
<?php if (wpsc_have_custom_meta()) : ?>
<div class="custom_meta">
<?php while ( wpsc_have_custom_meta() ) : wpsc_the_custom_meta(); ?>
<?php if (stripos(wpsc_custom_meta_name(),'g:') !== FALSE || (stripos(wpsc_custom_meta_name(),'bwps') !== FALSE)) continue; ?>
<strong><?php echo wpsc_custom_meta_name(); ?>: </strong><?php echo wpsc_custom_meta_value(); ?><br />
<?php endwhile; ?>
</div><!--close custom_meta-->
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment