replaced misused constants with constants set via WordPress API