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.
// Remove the old filters
global $gbac;
remove_filter('gbs_message_share_max', array( $gbac, 'gbs_message_share_max_new' ) );
remove_filter('gbs_message_share', array( $gbac, 'gbs_message_share_new' ) );
// Create new filters
add_filter('gbs_message_share_max', 'gbs_message_share_max_custom' );
add_filter('gbs_message_share', 'gbs_message_share_custom' );
// Message when a max is used
function gbs_message_share_max_custom()
{
printf(__('Help reach the goal of %s buyers (limited quantity of %s) and receive $%s when your friends save.', 'group-buying'), get_deal_threshold(), get_deal_threshold_max(), get_buyer_config_option('the-affiliate-credit') );
}
// Defualt text
function gbs_message_share_custom()
{
printf(__('Help reach the goal of %s buyers and receive $%s when your friends save.', 'group-buying'), get_deal_threshold(), get_buyer_config_option('the-affiliate-credit') );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment