Media uploader & manager: add/remove class on image with checkbox
Given this I can’t use post meta I suppose this is a typo (my emphasis) setting a global meta key/value on the image is not OK It’s either a post meta or a site option. To use it as site option, use this in attachments_fields_to_edit: $is_profile_image = get_option( ‘_is_profile_image’ ); $checked = isset( $is_profile_image[ $post->ID … Read more