
如何列出MySQL数据库(分步代码教程)
wp_get_direct_update_https_url ( No parameters )
wp_get_direct_update_https_url: 这个函数返回WordPress的直接HTTPS更新URL。它用于确定检查WordPress的更新时使用的URL。
获取直接更新网站使用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; }