Home Website TutorialsWordPress Change WordPress language with WP-CLI

Change WordPress language with WP-CLI

by Thạch Phạm
Published: Last Updated on

In this article, AZDIGI will show you how to change WordPress language with WP-CLI.

I. Introduction


But some websites don’t show language change feature, so you need to change WordPress language with WP-CLI. Here is a website with such a situation:

Change WordPress language with WP-CLI
Usually, we will find the language changer in the middle of the “New User Default Role” and “Timezone” sections. But this website is not like that.

II. How to change WordPress language with WP-CLI

To change WordPress language with WP-CLI, you need to do 2 steps:

Step 1: Access the Terminal feature on your hosting

You need access to this feature to use the WP-CLI command set, AZDIGI’s hosting service has this feature integrated.

For other providers, you may request it to unlock this feature and use it.

Step 2: Use the WP-CLI command and change the language on the website

After accessing the Terminal feature on the cPanel interface, use the following commands to change the WordPress language with WP-CLI:

AZDIGI Tutorial
cd thu_muc_website
wp language core install vn_VN

Remember to change thu_muc_website to the path containing the website source code folder to fix the problem.

Below, I fixed the problem for the primary website of the hosting, so I moved to public_html and used the second command.

Change WordPress language with WP-CLI

Although command number 2 shows an invalid error, but this means it’s complete. You just need to go back to the website and reload the page to change the language.

Change WordPress language with WP-CLI

As you can see, the website has reappeared the language change feature. Now, you can completely change the language you want.

image 6

I changed to Vietnamese and it worked perfectly.

III. Summary

So with just two simple steps, we can successfully change the WordPress language with WP-CLI. This is very rare, but it can still happen.

Hope the article is useful to you. Wishing you success!

See more useful cPanel articles at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign