Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active September 24, 2021 21:51
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 KaineLabs/aba28d606f7d79bc79fc1c6af2da4f8d to your computer and use it in GitHub Desktop.
Save KaineLabs/aba28d606f7d79bc79fc1c6af2da4f8d to your computer and use it in GitHub Desktop.
BuddyPress - Youzify Change Share Button Title
<?php
/**
* BuddyPress - Youzify Change Share Button Title.
**/
add_filter( 'youzify_wall_get_share_button_title', 'yzc_change_share_button', 10, 2 );
function yzc_change_share_button( $share_count, $count ) {
// Change the words: Share and shares
return sprintf(
_n(
'<span>%d</span> <span class="stats-name">Share</span>',
'<span>%d</span> <span class="stats-name">Shares</span>',
$count,
'youzify'
),
$count
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment