Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Created November 3, 2015 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save digitalchild/16fcf6e3c74d90383aff to your computer and use it in GitHub Desktop.
Save digitalchild/16fcf6e3c74d90383aff to your computer and use it in GitHub Desktop.
Change dashboard date range
<?php
add_filter('wcv_dashboard_start_date', 'dashboard_start_date' );
function dashboard_start_date() {
return '-1 week';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment