public
Last active

  • Download Gist
GBS Messages filter
1 2 3 4 5 6 7 8 9 10 11 12 13
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 );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.