WP_Model icon indicating copy to clipboard operation
WP_Model copied to clipboard

Feature request: Fetch single

Open VesterDe opened this issue 7 years ago • 0 comments

I have several classes extending WP_Model and in nearly every one of them I have a couple of getters or finders where I explicitly need 1 entity from a resulting query. Usually because I'm fetching by a meta value that is unique. It would be nice if there were a built-in utility for that.

It's a minor improvement, but saves a few dozen character every class :)

VesterDe avatar Aug 31 '18 00:08 VesterDe