You can add the code to a functions plugin or into your WordPress theme's functions.php file.
You can change order=asc
to order=desc
to reverse the order.
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action ( 'admin_menu', 'ee_filter_ee_events_orderyby_datetime', 99 ); | |
function ee_filter_ee_events_orderyby_datetime() { | |
// call global submenu item | |
global $submenu; | |
// edit main link for events | |
$submenu['espresso_events'][0][2] = 'admin.php?page=espresso_events&orderby=Datetime.DTT_EVT_start&order=asc&active_status=upcoming'; | |
} |
You can add the code to a functions plugin or into your WordPress theme's functions.php file.
You can change order=asc
to order=desc
to reverse the order.