wp_get_default_update_https_url

函式
wp_get_default_update_https_url ( No parameters )
Access
Private
返回值
  • (string) Default URL to learn more about updating to HTTPS.
定義位置
相關方法
wp_get_default_update_php_urlwp_get_direct_update_https_urlwp_get_update_https_urlwp_get_update_php_urlwp_get_direct_php_update_url
引入
5.7.0
棄用
-

wp_get_default_update_https_url: 這個函式返回WordPress的預設HTTPS更新URL。它用於確定檢查WordPress的更新時使用的URL。

獲取預設的URL以瞭解更多關於更新網站使用HTTPS的資訊。

不要使用此函式來檢索此URL。相反,在依賴該URL時,使用{@see}: 這個函式不允許修改返回的URL,只用於比較實際使用的URL和預設的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_get_default_update_https_url() {
/* translators: Documentation explaining HTTPS and why it should be used. */
return __( 'https://wordpress.org/support/article/why-should-i-use-https/' );
}
function wp_get_default_update_https_url() { /* translators: Documentation explaining HTTPS and why it should be used. */ return __( 'https://wordpress.org/support/article/why-should-i-use-https/' ); }
function wp_get_default_update_https_url() {
	/* translators: Documentation explaining HTTPS and why it should be used. */
	return __( 'https://wordpress.org/support/article/why-should-i-use-https/' );
}

常見問題

FAQs
檢視更多 >