Last active
May 22, 2021 02:32
-
-
Save KaineLabs/6c86bb942e4aa782375093d3eb0def01 to your computer and use it in GitHub Desktop.
Translater "All Members" Button Title
This file contains 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
<?php | |
// Translate "All Members" Button Title | |
function yzc_translate_all_members_link( $translated_text ) { | |
switch ( $translated_text ) { | |
case 'All Members %s' : | |
$translated_text = sprintf( __( 'All Authors %s', 'youzer' ), '<span>' . bp_get_total_member_count() . '</span>' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'yzc_translate_all_members_link', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment