{"id":29367,"date":"2014-05-12T02:52:14","date_gmt":"2014-05-12T02:52:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/http-urls\/"},"modified":"2014-05-12T03:08:52","modified_gmt":"2014-05-12T03:08:52","slug":"http-urls","status":"closed","type":"plugin","link":"https:\/\/so.wordpress.org\/plugins\/http-urls\/","author":13073773,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"3.9.40","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"HTTP URLs","header_author":"Mickey Kay & MIGHTYminnow","header_description":"","assets_banners_color":"","last_updated":"2014-05-12 03:08:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/wordpress.org\/plugins\/http-urls","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/http-urls","header_author_uri":"http:\/\/mightyminnow.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2103,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>First Release.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1972,947,1908,28445,538],"plugin_category":[49,54],"plugin_contributors":[78526,78527],"plugin_business_model":[],"class_list":["post-29367","plugin","type-plugin","status-closed","hentry","plugin_tags-change","plugin_tags-http","plugin_tags-https","plugin_tags-protocol","plugin_tags-url","plugin_category-maps-and-location","plugin_category-security-and-spam-protection","plugin_contributors-mcguive7","plugin_contributors-mightyminnow","plugin_committers-mcguive7","plugin_committers-mightyminnow","plugin_support_reps-mightyminnow"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/http-urls.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Use the simple <code>[http-url]<\/code> shortcode to convert any URL to either HTTP or HTTPS.<\/p>\n\n<h4>The Shortcode<\/h4>\n\n<pre><code>[http-url]\n<\/code><\/pre>\n\n<p>By default the <code>[http-url]<\/code> shortcode will output the URL of the current post converted to HTTP. Note: must be used within the loop.<\/p>\n\n<h4>Shortcode Attributes<\/h4>\n\n<p><strong><code>url<\/code><\/strong> - manually specify the URL to be converted (can be used outside the loop):\n    [http-url url=\"https:\/\/mysite.com\"]<\/p>\n\n<p><strong><code>to_https<\/code><\/strong> - convert URL to HTTPS, instead of to HTTP:\n    [http-url to_https=\"true\"]<\/p>\n\n<h4>PHP Usage<\/h4>\n\n<p>HTTP URLs also provides two functions that can be used in your php:\n    hu_get_http_url( $url ); \/\/ Returns URL converted to HTTP\n    hu_get_https_url( $url ); \/\/ Returns URL converted to HTTPS<\/p>\n\n<h4>Why Use This Plugin?<\/h4>\n\n<p>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. <a href=\"http:\/\/www.mightyminnow.com\/2014\/05\/how-to-make-social-media-shares-counts-and-comments-work-across-http-and-https\/\">Learn More &rarr;<\/a><\/p>\n\n<!--section=installation-->\n<p>Simply install and activate the plugin. The [http-url] shortcode and related PHP functions are now available for you to use.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"The easiest way to get the HTTP\/HTTPS version of any URL.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29367"}],"author":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mightyminnow"}],"wp:attachment":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29367"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29367"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29367"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29367"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29367"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}