该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

HTTP URLs

描述

Use the simple [http-url] shortcode to convert any URL to either HTTP or HTTPS.

The Shortcode

[http-url]

By default the [http-url] shortcode will output the URL of the current post converted to HTTP. Note: must be used within the loop.

Shortcode Attributes

url – manually specify the URL to be converted (can be used outside the loop):
[http-url url=”https://mysite.com”]

to_https – convert URL to HTTPS, instead of to HTTP:
[http-url to_https=”true”]

PHP Usage

HTTP URLs also provides two functions that can be used in your php:
hu_get_http_url( $url ); // Returns URL converted to HTTP
hu_get_https_url( $url ); // Returns URL converted to HTTPS

Why Use This Plugin?

The most common case for using this plugin is in conjunction with social media sharing/commenting plugins, in which data is tied to a specific URL. On sites that are visible via both HTTP and HTTPS, this means that two different sets of differing data are created for every page. HTTP URLs provides a handy solution to this common problem. Learn More →

安装

Simply install and activate the plugin. The [http-url] shortcode and related PHP functions are now available for you to use.

评价

此插件暂无评价。

贡献者及开发者

“HTTP URLs” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“HTTP URLs”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • First release.