
构建自定义古腾堡区块:权威WordPress区块开发教程
wp_is_home_url_using_https ( No parameters )
Checks whether the current site URL is using HTTPS.
function wp_is_home_url_using_https() { return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME ); }