URL trang web trong WordPress

Cài đặt 5 phút của WordPress sẽ cài đặt các tệp wordpress, hai giá trị này sẽ giống nhau - các tệp wordpress sẽ được cài đặt trong cùng một thư mục mà bạn muốn mọi người sử dụng để giải quyết trang web của bạn hoặc phần wordpress (blog) trên trang web của máy chủ của bạn

Ví dụ 1.
người dùng truy cập blog của bạn tại.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1,
tệp wordpress được cài đặt tại.
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 hoặc thư mục gốc của trang web trên máy chủ của bạn.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
4 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
0

Ví dụ 2.
người dùng truy cập blog của bạn tại.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1,
tệp wordpress được cài đặt tại.
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 hoặc trong thư mục
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3 bên trong thư mục gốc của trang web của bạn.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
4 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
6

Trong trường hợp này,

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 là trang web chính và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 là thư mục gốc của blog của bạn.
Ở đây blog của bạn được tách biệt và hoạt động như một tập hợp con của trang web chính của bạn.
Trong trường hợp này, trang web chính của bạn không được kiểm soát, xác định hoặc tạo kiểu bởi WordPress.
Chỉ blog của bạn là. Tất cả các url trong blog của bạn sẽ được xử lý bởi
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1

Ghi chú. Trong tài liệu, "trang web/trang web Wordpress" (trái ngược với "trang web/trang web") đề cập đến thư mục nơi các tệp WordPress của bạn được cài đặt. Trong trường hợp này, nó là

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 - mọi thứ trong thư mục
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3. "Trang web WordPress", trong trường hợp này, không giống với miền, thư mục gốc hoặc trang web chính của bạn. Nó là một tập hợp con của trang web tổng thể của bạn. Giống như một trang web bên trong một trang web. Tôi đề cập đến điều này vì thuật ngữ có vẻ không rõ ràng hoặc khó hiểu, do thiết lập cụ thể này

Cấu hình cài đặt WordPress thay thế

Cung cấp cho WordPress Thư mục riêng của nó, phần

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
12

Ví dụ: nhiều người không muốn làm tắc nghẽn thư mục gốc của trang web của họ với tất cả các tệp wordpress.
Họ muốn cài đặt wordpress trong thư mục con, *nhưng lại truy cập "blog" hoặc "trang web WordPress" như thể các tệp được cài đặt trong thư mục gốc của máy chủ dành cho trang web.

Điều này đặc biệt đúng khi WordPress được sử dụng để xây dựng và chạy toàn bộ trang web thậm chí không có "blog"

Ví dụ 3.
người dùng truy cập "blog" của bạn tại.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1,
tệp wordpress được cài đặt tại.
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
0 hoặc thư mục gốc của trang web trên máy chủ của bạn.

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
0
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
4 ===
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
18

(Lưu ý. cấu hình này sẽ không hoạt động "ngoài luồng" chỉ bằng cách thay đổi giá trị của các biến này. Nó yêu cầu các thay đổi cấu hình bổ sung để hoạt động bình thường)
Xem Cung cấp thư mục riêng cho WordPress, phần có tiêu đề

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
12 để biết cách thực hiện việc này.

Trong trường hợp này,

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3 và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
4 sẽ giữ các giá trị khác nhau

Trong thiết lập này, bạn muốn trang web của mình hoạt động chính xác như thể các tệp WordPress đã được cài đặt trong thư mục gốc của máy chủ dành cho trang web của bạn.
NHƯNG, vì mục đích tổ chức trên máy chủ,
bạn thực sự có các tệp WordPress của mình trong một thư mục có tên là

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
02 trong thư mục gốc của máy chủ dành cho trang web của bạn.

Vì vậy, người dùng sẽ nhập vào

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
1 để nhận trang chủ WordPress của bạn, thay vì
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
0

wordpress function database variable Wordpress Constant

Phần này giả định cấu hình Ví dụ 3 ở trên.
url thanh địa chỉ. www. thí dụ. com
tệp wordpress. /thư mục wordpress

(Các trường hợp khác là tầm thường. Tất cả các biến/hàm giữ/trả về cùng một giá trị. )

Cách đặt giá trị cho
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
4 và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
3

Đầu tiên, hãy để tôi lưu ý rằng các giá trị lưu trữ của

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
07 và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
08 được trả về bởi các hàm ở trên

  1. Thông thường, bạn đặt các giá trị này trên bảng điều khiển phụ trợ/bảng điều khiển/quản trị viên WordPress.
    ______209
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    07 Địa chỉ WordPress.
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    31
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    08 Địa chỉ trang web.
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    33

(không bao gồm dấu gạch chéo ở đây - điều đó sẽ được định cấu hình ở nơi khác)

  1. Hoặc, bạn đặt các giá trị này trong cơ sở dữ liệu WordPress của mình.
    ______134 bảng ->

    WP function | wp_options. | WP constant | what it represents | WP Settings Label | Example ------------------------------------------------------------------------------------------------------------------------------------- `site_url()` | `siteurl` | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress `home_url()` | `home` | `WP_HOME` | browser address bar | Site Address | https://www.example.com 35. WP function | wp_options. | WP constant | what it represents | WP Settings Label | Example ------------------------------------------------------------------------------------------------------------------------------------- `site_url()` | `siteurl` | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress `home_url()` | `home` | `WP_HOME` | browser address bar | Site Address | https://www.example.com 36

    ______207.

    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    31
    ______208.
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    33

(không bao gồm dấu gạch chéo ở đây - điều đó sẽ được định cấu hình ở nơi khác)

  1. Chỉnh sửa

    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    41 của bạn
    Xác định các hằng số cụ thể này để giữ các giá trị của bạn
    Xác định cài đặt
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    42 và
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    43 bằng cách chèn các dòng này vào đầu tệp
    WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
    -------------------------------------------------------------------------------------------------------------------------------------
    `site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
    `home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
    
    41 của bạn.

    định nghĩa('WP_SITEURL','http. //thí dụ. com/wordpress'); . //thí dụ. com');

    // ** Cài đặt MySQL - Bạn có thể lấy thông tin này từ máy chủ web của mình ** //.
    (không bao gồm dấu gạch chéo ở đây - điều đó sẽ được định cấu hình ở nơi khác)

Tài liệu tham khảo. WP_SITEURL và WP_HOME

LƯU Ý. Điều này thật khó hiểu
(Tôi thực sự ước gì WordPress đã gắn nhãn Cài đặt tương tự như tên php của chúng,
chẳng hạn như

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
45 và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
46 hoặc một cái gì đó rõ ràng hơn như
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
47 và
WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
48)

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
0

Bây giờ Đây là nơi nó trở nên khó khăn

NẾU bạn đã xác định các hằng số đó trong tệp

WP function  | wp_options. | WP constant  | what it represents       | WP Settings Label | Example     
-------------------------------------------------------------------------------------------------------------------------------------
`site_url()` | `siteurl`   | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress
`home_url()` | `home`      | `WP_HOME`    | browser address bar      | Site Address      | https://www.example.com 
41 của mình, thì giá trị bạn có trong cơ sở dữ liệu/trang cài đặt không quan trọng.
Trên thực tế, bạn sẽ không thể sửa đổi giá trị này thông qua giao diện người dùng phía sau (giá trị này sẽ chuyển sang màu xám). Bạn vẫn có thể sửa đổi bằng cách chỉnh sửa cơ sở dữ liệu của mình, nhưng làm như vậy sẽ không ảnh hưởng đến trang web của bạn, trong khi các hằng số tồn tại trong tệp wp-config của bạn.

Tệp cấu hình của bạn sẽ không thay đổi các giá trị trong cơ sở dữ liệu của bạn (hoặc do đó, trang cài đặt của bạn). Thay vào đó, các giá trị trang cơ sở dữ liệu/cài đặt của bạn sẽ bị bỏ qua. Các giá trị trong wp-config ghi đè hoặc được ưu tiên hơn cài đặt cơ sở dữ liệu của bạn