Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created November 17, 2010 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sproutventure/702969 to your computer and use it in GitHub Desktop.
Save sproutventure/702969 to your computer and use it in GitHub Desktop.
function gbs_message_share_max_override()
{
sprintf(__('Help reach the goal of %s buyers (limited quantity of %s)!'), get_deal_threshold(), get_deal_threshold_max() );
}
function gbs_message_share_override()
{
sprintf(__('Help reach the goal of %s buyers!'), get_deal_threshold() );
}
remove_filter('gbs_message_share_max_new' );
remove_filter('gbs_message_share_new' );
add_filter('gbs_message_share_max', 'gbs_message_share_max_override', 99999 );
add_filter('gbs_message_share', 'gbs_message_share_override', 99999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment