Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianleejackson/4447782edb046163b7bec919ad658010 to your computer and use it in GitHub Desktop.
Save brianleejackson/4447782edb046163b7bec919ad658010 to your computer and use it in GitHub Desktop.
Novashare news site refresh rate (12 hours)
function novashare_custom_refresh_rates($rates) {
return array(
'max' => 5184000, //60 days in seconds
'sets' => array(
array(
'modified' => 604800, //7 days in seconds
'rate' => 43200 //12 hours in seconds
),
array(
'modified' => 2419200, //28 days in seconds
'rate' => 2592000 //30 days in seconds
)
)
);
}
add_filter('novashare_filter_refresh_rates', 'novashare_custom_refresh_rates');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment