[wp-hackers] How and where is _wp_attachment_metadata added?

Otto otto at ottodestruct.com
Thu Sep 1 17:48:32 UTC 2011


http://codex.wordpress.org/Function_Reference/add_image_size

You'd call add_image_size in a function hooked to init or
after_setup_theme or something like that. This adds a new size that
you can use to that list.

Or are you trying to do something else? How you do it depends on what,
specifically, you want to do.

-Otto



On Thu, Sep 1, 2011 at 11:49 AM, Alex Andrews <awgandrews at gmail.com> wrote:
>  Hi all,
>
> Looking to do something clever using _wp_attachment_metadata, as I note in there is where we can find the location of all the various sizes of images that are produced, for example, the thumbnail and so on? How do we add size formats to this?
>
> When is this added in the normal upload run and what is its format?
>
> All the best,
>
> Alex
>
> --
> Alex Andrews
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list