{"id":52509,"date":"2016-12-09T17:42:49","date_gmt":"2016-12-09T17:42:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/include-url\/"},"modified":"2022-11-02T18:35:05","modified_gmt":"2022-11-02T18:35:05","slug":"include-url","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/include-url\/","author":15105711,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.3.5","stable_tag":"0.3.5","tested":"6.1.10","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Include URL","header_author":"Samuel Behan","header_description":"","assets_banners_color":"","last_updated":"2022-11-02 18:35:05","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/devel.dob.sk\/include-url","header_plugin_uri":"https:\/\/devel.dob.sk\/include-url%20or%20https:\/\/github.com\/samsk\/include-url","header_author_uri":"https:\/\/dob.sk","rating":0,"author_block_rating":0,"active_installs":100,"downloads":3422,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.2.1":{"tag":"0.2.1","author":"samsk","date":"2016-12-09 20:03:31"},"0.3.0":{"tag":"0.3.0","author":"samsk","date":"2016-12-16 21:48:21"},"0.3.1":{"tag":"0.3.1","author":"samsk","date":"2018-05-17 20:01:01"},"0.3.2":{"tag":"0.3.2","author":"samsk","date":"2018-12-18 13:00:36"},"0.3.3":{"tag":"0.3.3","author":"samsk","date":"2019-05-22 08:25:14"},"0.3.4":{"tag":"0.3.4","author":"samsk","date":"2019-05-22 08:31:47"},"0.3.5":{"tag":"0.3.5","author":"samsk","date":"2022-11-02 18:35:05"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.1","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[12491,538],"plugin_category":[],"plugin_contributors":[96875],"plugin_business_model":[],"class_list":["post-52509","plugin","type-plugin","status-closed","hentry","plugin_tags-include","plugin_tags-url","plugin_contributors-samsk","plugin_committers-samsk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/include-url.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Features<\/h4>\n\n<p>Include URL is a Wordpress plugin for seamless inclusion of data from remote urls, optionaly passing GET parameters to it..<\/p>\n\n<ul>\n<li>Get remote url content<\/li>\n<li>Pass given GET params to url<\/li>\n<li>Cache fetched content localy in Wordpress DB (for extremely slow sources)<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<pre><code>  [include-url href=\"&lt;URL&gt;\" params=\"param1,param2,param3...\" timeout=\"seconds\" cache=\"seconds\" allow-file=\"1\" allow-shortcode=\"1\"]\n<\/code><\/pre>\n\n<ul>\n<li><em>href<\/em> - url starting with http:\/\/ or https:\/\/ (required)<\/li>\n<li><em>params<\/em> - list of comma separated GET parameters, that should be passed to include url<\/li>\n<li><em>timeout<\/em> - request timeout in seconds<\/li>\n<li><em>cache<\/em> - cache request data localy in wordpress database (default = 0 seconds \/ disabled)<\/li>\n<li><em>allow-file<\/em> - allow file:\/\/ urls in <em>href<\/em> (default = 0 \/ disabled, 1 = prepend file with document root, 2 = use absolute path)<\/li>\n<li><em>allow-other<\/em> - allow any other protocol supported by cURL<\/li>\n<li><em>allow-shortcode<\/em> - allow and process wordpress shortcodes in included content<\/li>\n<\/ul>\n\n<h4>Examples<\/h4>\n\n<ul>\n<li><p>Search frontend page for <a href=\"https:\/\/lucene.apache.org\/solr\/\">SOLR<\/a><\/p>\n\n<p>[include-url href=\"http:\/\/localhost:8080\/solr\/core1\/select?wt=xslt&amp;wt=results.xslt\" params=\"q,fq\" cache=\"1800\"]<\/p><\/li>\n<\/ul>\n\n<p>This requests data from local SOLR instance, that will return search results formated as HTML (ie. table) via its XSLT handler, optionally passing q (query) and fq (filter) params to it. Data will be cached for 1800 seconds in Wordpress database.<\/p>\n\n<ul>\n<li><p>Read file from document_root<\/p>\n\n<p>[include-url href=\"file:\/\/robots.txt\" allow-file=\"1\"]<\/p><\/li>\n<li><p>Read file specified by absolute path<\/p>\n\n<p>[include-url href=\"file:\/\/\/var\/www\/html\/robots.txt\" allow-file=\"2\"]<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Make sure you are using WordPress 4.0 or later and that your server is running PHP 5.2.4 or later (same requirement as WordPress itself)<\/li>\n<li>Install and activate the plugin as usual from the 'Plugins' menu in WordPress.<\/li>\n<li>Use shortcode in page or post<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.3.5 (2020-07-28)<\/h4>\n\n<ul>\n<li>Fix some undefined warnings and add timeout to file_get_contents() call (Thanks Marco Baumgartl for reporting it)<\/li>\n<\/ul>\n\n<h4>0.3.4 (2019-05-22)<\/h4>\n\n<ul>\n<li>Improve shortcode attributes processing<\/li>\n<\/ul>\n\n<h4>0.3.2 (2018-05-17)<\/h4>\n\n<ul>\n<li>Add allow-shortcode option<\/li>\n<\/ul>\n\n<h4>0.3.1 (2017-04-03)<\/h4>\n\n<ul>\n<li>Fix cached content processing<\/li>\n<\/ul>\n\n<h4>0.3.0 (2016-12-15)<\/h4>\n\n<ul>\n<li>Allow file:\/\/ urls if allow-file=\"1\" or allow-file=\"2\" param is given<\/li>\n<li>Allow all cURL protocols if allow-other=\"1\" param is given<\/li>\n<\/ul>\n\n<h4>0.2.1 (2016-08-26)<\/h4>\n\n<ul>\n<li>Restrict urls to http:\/\/ and https:\/\/<\/li>\n<\/ul>\n\n<h4>0.2.0 (2016-08-25)<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Include URL allows to include any URL in posts or pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52509"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/samsk"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52509"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52509"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52509"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52509"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52509"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}