Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#54235 new feature request

Script for handling metadata in wp_postmeta

Reported by: julia77's profile julia77 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Database Keywords: needs-docs
Focuses: Cc:

Description

Hello,

Since wp_postmeta table gets so big, and most users just upload and delete and change themes/media sizes and reload and change again, etc. sooo often …could someone at WordPress just give a customizable function to handle data in that table? Specifically for images …

I´m using a filter to prevent storing exif and iptc metadata in the same meta key for sizes (_wp_attachment_metadata):

add_filter( ‘wp_read_image_metadata’, ‘return_false’ );

but I had to delete manually all data that was previously added by default …and the same for unused images´ sizes.

I guess wp-includes/media.php points something about this but I have no idea about unserializing, query for specific data, filtering results, deleting it, serializing again and restoring to db …I´m affraid this tasks have to be done manually by users with no code knowledge …

Hope someone could write a custom php script for this.

Thanks,

Julia

Change History (0)

Note: See TracTickets for help on using tickets.