wp_get_direct_update_https_url
函数
wp_get_direct_update_https_url ( No parameters )
- 返回值
-
- (string) URL for directly updating to HTTPS or empty string.
- 定义位置
-
-
wp-includes/functions.php
, line 8168
-
wp-includes/functions.php
- 引入
- 5.7.0
- 弃用
- –
获取直接更新网站使用HTTPS的URL。
只有在指定了`WP_DIRECT_UPDATE_HTTPS_URL`环境变量或使用{@see ‘wp_direct_update_https_url’}过滤器时,才会返回一个URL。这允许主机将用户直接发送到他们可以更新他们的网站以使用HTTPS的页面。
function wp_get_direct_update_https_url() { $direct_update_url = ''; if ( false !== getenv( 'WP_DIRECT_UPDATE_HTTPS_URL' ) ) { $direct_update_url = getenv( 'WP_DIRECT_UPDATE_HTTPS_URL' ); } /** * Filters the URL for directly updating the PHP version the site is running on from the host. * * @since 5.7.0 * * @param string $direct_update_url URL for directly updating PHP. */ $direct_update_url = apply_filters( 'wp_direct_update_https_url', $direct_update_url ); return $direct_update_url; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。