Skip to content

Saving URL or attachment_id on file/image fields #48

@tareq1988

Description

@tareq1988

Right now we are saving attachment URLs in the option. Wouldn't it be better to save attachment ids instead?

So if its a file, we can use wp_get_attachment_url(). If its an image, we could get full, thumbnail, medium images if we wanted. What do you guys think?

Changing to attachment_id will also break the existing forms as users are already fetching URLs and acting on that.

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