wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_is_using_https › WordPress Function

Since5.7.0
已弃用n/a
wp_is_using_https ( 没有参数 )
查看:
返回:
  • (bool) True if using HTTPS, false otherwise.
定义在:
文档:

Checks whether the website is using HTTPS.

This is based on whether both the home and site URL are using HTTPS.


源码

function wp_is_using_https() {
	if ( ! wp_is_home_url_using_https() ) {
		return false;
	}

	return wp_is_site_url_using_https();
}