Changing the language of a single page

The locale filter that allows you to set the locale specifically. You can check the current page, and alter the value based on that.

add_filter('locale', 'change_my_locale');
function change_my_locale( $locale ) {
    if ( is_page('slug-here') ) {
        return 'en_US';
    }
    return $locale;
}

Leave a Comment