Here might be an interesting idea: is it possible to add a “quicklink” to the quick links at the top of the Post Admin page (e.g. above the Bulk Actions dropdown, where it says “All | Published | Scheduled | Drafts | Pending”)?
My idea is to add a links for:
Today | Monday | Tuesday | Wednesday | Thursday | Friday
Just adding “Today” would be useful, as it would trigger the filter that shows all the posts that were either published or are scheduled for today.
You can use the
views_{screen_id}
filter (used here), which filters an array where the keys act as an ID for that ‘view’ and the value is the HTML to be used to display the view (such as ‘All’, ‘Draft’, ‘Trash’ etc.).You can simply add extra links to this array:
Of course – WordPress won’t automatically highlight your custom link (why would it?) – but to do that you you simply have to add the class
current
to the link when appropriate (check if the year, month and day are being queried?).By default WordPress adds this class to ‘all’ – so when you add the class you’ll also need to remove it from ‘all’ (otherwise they will both appear bold). To do that, you can either replace the ‘all’ value or
preg_replace
to remove the class.