Add edd_get_*_by() functions

Reference issue #2122 and #2123