This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Auto Refresh

Description

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 & pages.

Configuration Examples

How to configure:
For more information see this link on the wordpress codex https://codex.wordpress.org/Conditional_Tags
Example Use of this code when only show this code if is single post 54 or page 23

Function auto_refresh() {

    $ssingle = is_single ('54');
    issignlearray = is_single ( array (''));
    $ispage = is_page ('23');
    $ispagearray = is_page ( array (''));
        if ( $issingle && $issinglearray && $ispage && $ispagearray ) 
            echo "<meta http-equiv='refresh' content='10'>"; 
        else 
            echo "";
}

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’

function auto_refresh() {

    $issingle = is_single ('');
    $issignlearray = is_single ( array ('54, 55, 56, 'about-me''));
    $ispage = is_page ('23');
    $ispagearray = is_page ( array ('23, 24, 25, 26 'contact-us''));
        if ( $issingle && $issinglearray && $ispage && $ispagearray ) 
            echo "<meta http-equiv='refresh' content='10'>"; 
        else 
            echo "";
}

For more information see this link on the wordpress codex https://codex.wordpress.org/Conditional_Tags

Installation

This section describes how to install the plugin and get it working.

  1. Upload auto_refresh directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Then customize the plugin from the /wp-content/plugins/refresh.php file

FAQ

Can i change the refresh interval

Yes. edit this line echo "<meta http-equiv='refresh' content='10'>"; and change the content='10' to whatever you want (content='120' for 2 minutes)

Contributors & Developers

“Auto Refresh” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Auto Refresh” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

  • Start of project

1.1

  • Added ability to assign to certain pages