I want a field in the widget where i can add a number of days to exclude post for example if i add 7 days then i need to get the posts after the 7 days on todays date.I can get it through date_query but i cannot get the query in the function .
Please help me to filter the post by days
https://wordpress.org/plugins/google-analytics-top-posts-widget/