How to remove the sort by date filter

To remove the date options in the 'Sort by' drop down, simply add the following hook and function to your child theme's functions.php file:

add_filter( 'epl_sorting_options', function( $sortables ) {
    $remove_array = array ( 'new', 'old' );

    foreach ( $sortables as $key => $sortable ) {
        if ( in_array( $sortable['id'], $remove_array ) ) {
            unset( $sortables[$key] );
        }
    }
    
    return $sortables;
} );