Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Or … another approach … create a simple plugin, and add the following filter:

    add_filter('bogo_language_switcher_links', 'my_bogo_language_switcher_links_filter');
    function my_bogo_language_switcher_links_filter($links, $args)
    {
            foreach ( $links as $key => $link ) {
                    if ( $link['locale'] == 'en_US' ) {
                            unset( $links[$key] );
                            break;
                    }
            }
            return $links;
    }

    You can do it if you edit bogo/includes/functions.php.

    Comment out line 214 and that’s it. The line looks like:

    $installed_locales[] = ‘en_US’;

    It seems to be working for me.

Viewing 2 replies - 1 through 2 (of 2 total)