Skip to content

Feature request: Fetch single #12

@VesterDe

Description

@VesterDe

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions