Text change
-
When you click the follow button, it changes to ‘Unfollow’ but I would like to change that text to ‘Following’, a small change simply because it sounds more positive.
I change some texts by using the gettext filter, example:
function replace_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case '%s posted a new activity comment' : $translated_text = __( '%s Commented', 'my-text-domain' ); break; } return $translated_text; } add_filter( 'gettext', 'replace_text', 20, 3 );
But this filter doesn’t work for this Follow plugin. Any ideas how I can filter this?
Here is the line with the ‘Unfollow’ text in template.php:
$link_text = sprintf( _x( 'Unfollow', 'Button', 'bp-follow' ), apply_filters( 'bp_follow_leader_name', bp_get_user_firstname( $leader_fullname ), $r['leader_id'] ) );
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Text change’ is closed to new replies.