Skip to content

Instantly share code, notes, and snippets.

@sebastianmoran-mainwp
Created January 30, 2019 21:39
Show Gist options
  • Save sebastianmoran-mainwp/cfff221c2839cd92adc7e5277a7492db to your computer and use it in GitHub Desktop.
Save sebastianmoran-mainwp/cfff221c2839cd92adc7e5277a7492db to your computer and use it in GitHub Desktop.
MainWP Child Report Plugin reduce number of days data is stored for
$val = get_option('mainwp_wp_stream');
if (!is_array($val)) {
$val = array();
}
$val['general_records_ttl'] = 60; // for example
update_option('mainwp_wp_stream', $val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment