Skip to content

Instantly share code, notes, and snippets.

@brianleejackson
Last active January 6, 2021 17:11
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/8f8f1bd96cbc0e517e633c64b46dab32 to your computer and use it in GitHub Desktop.
Save brianleejackson/8f8f1bd96cbc0e517e633c64b46dab32 to your computer and use it in GitHub Desktop.
Novashare news site refresh rate (24 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' => 86400 //24 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