Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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