php – WooCommerce: write featured image dimensions to custom fields in product’

Question

It’s all in the title. I’m somewhat handy with php, less so with WP hooks and subroutines. When I originally select (or later change) a featured image for a product, I want the pixel dimensions of the image written to custom fields img_w and img_l in my product record.

0
Joe Foe 7 days 2022-09-17T18:36:19-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse