Created
November 17, 2010 04:19
-
-
Save sproutventure/702969 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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