Support » Plugin: Connections Business Directory » Changing Field Names

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shazahm1

    (@shazahm1hotmailcom)

    @toddtoven

    Are you comfortable with PHP? You can customize the stings using the gettext filter. Here’s an example. Just drop this in the theme’s functions.php file.

    function toddtoven_gettext( $translated_text , $text , $domain )  {
        if ( $domain == 'connections' && $translated_text == 'Organization' ) {
            $translated_text = 'My New Text';
        }
        if ( $domain == 'connections' && $translated_text == 'Department' ) {
            $translated_text = 'My New Text';
        }
        return $translated_text;
    }
    
    add_filter( 'gettext', 'toddtoven_gettext', 20, 3 );

    best function name ever. thanks steven!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing Field Names’ is closed to new replies.