[wp-trac] [WordPress Trac] #54235: Script for handling metadata in wp_postmeta

WordPress Trac noreply at wordpress.org
Fri Oct 8 12:49:11 UTC 2021


#54235: Script for handling metadata in wp_postmeta
-----------------------------+-----------------------------
 Reporter:  julia77          |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Database         |    Version:
 Severity:  normal           |   Keywords:  needs-docs
  Focuses:                   |
-----------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54235>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list