Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Location of PHP file that contains “Add Friend” button

@shanebp

Moderator

Try this in bp-custom.php

function sg_gettext( $translated, $original_text, $domain ) {

    if ( 'buddypress' !== $domain )  
           return $translated;

    switch ( $original_text ) {
        case 'Add Friend':
            return 'Something Else';

        default:
            return $translated;
    }
}
add_filter( 'gettext', 'sg_gettext', 20, 3 );
Skip to toolbar