{"id":13361,"date":"2011-05-24T05:28:21","date_gmt":"2011-05-24T05:28:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-auto-refresh\/"},"modified":"2011-05-24T05:36:30","modified_gmt":"2011-05-24T05:36:30","slug":"wp-auto-refresh","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-auto-refresh\/","author":6856150,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"1.1","tested":"3.2.1","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Auto Refresh","header_author":"Wordpress Answeres Community & Tyler Yates (xlrdxrevengex)","header_description":"","assets_banners_color":"","last_updated":"2011-05-24 05:36:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/wordpress.stackexchange.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":14829,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[683,5827,17729],"plugin_category":[],"plugin_contributors":[90855],"plugin_business_model":[],"class_list":["post-13361","plugin","type-plugin","status-closed","hentry","plugin_tags-meta","plugin_tags-refresh","plugin_tags-wp_head","plugin_contributors-xlrdxrevengex","plugin_committers-xlrdxrevengex"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-auto-refresh.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is great for people who have a very busy site and want a refresh every 10, 20, 30, 60, 1800 seconds or whatever you specify in the file. It has a built in filter for enabling this code on specific posts &amp; pages.<\/p>\n\n<h3>Configuration Examples<\/h3>\n\n<p>How to configure:\nFor more information see this link on the wordpress codex http:\/\/codex.wordpress.org\/Conditional_Tags\nExample Use of this code when only show this code if is single post 54 or page 23<\/p>\n\n<pre><code>Function auto_refresh() {\n\n    $ssingle = is_single ('54');\n    issignlearray = is_single ( array (''));\n    $ispage = is_page ('23');\n    $ispagearray = is_page ( array (''));\n        if ( $issingle &amp;&amp; $issinglearray &amp;&amp; $ispage &amp;&amp; $ispagearray ) \n            echo \"&lt;meta http-equiv='refresh' content='10'&gt;\"; \n        else \n            echo \"\";\n}\n<\/code><\/pre>\n\n<p>Example Use of this code when only show this code if is single post's 54, 55, 56, 'about-me' or page 23, 24, 25, 26 'contact-us'<\/p>\n\n<pre><code>function auto_refresh() {\n\n    $issingle = is_single ('');\n    $issignlearray = is_single ( array ('54, 55, 56, 'about-me''));\n    $ispage = is_page ('23');\n    $ispagearray = is_page ( array ('23, 24, 25, 26 'contact-us''));\n        if ( $issingle &amp;&amp; $issinglearray &amp;&amp; $ispage &amp;&amp; $ispagearray ) \n            echo \"&lt;meta http-equiv='refresh' content='10'&gt;\"; \n        else \n            echo \"\";\n}\n<\/code><\/pre>\n\n<p>For more information see this link on the wordpress codex http:\/\/codex.wordpress.org\/Conditional_Tags<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload <code>auto_refresh<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Then customize the plugin from the <code>\/wp-content\/plugins\/refresh.php<\/code> file<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can i change the refresh interval<\/dt>\n<dd><p>Yes. edit this line <code>echo \"&lt;meta http-equiv='refresh' content='10'&gt;\";<\/code> and change the <code>content='10'<\/code> to whatever you want (<code>content='120'<\/code> for 2 minutes)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Start of project<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added ability to assign to certain pages<\/li>\n<\/ul>","raw_excerpt":"This plugin will add a meta refresh tag when the wp_head function is called","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13361","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=13361"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/xlrdxrevengex"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13361"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13361"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13361"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13361"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13361"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}