skip to Main Content

WordPress – How to update WP post_meta products sale price with one query, if _sale_price exists update it, if not insert new row

In WordPress table wp_postmeta products data is stored like this: meta_id post_id meta_key meta_value 6677055 36828 _product_version 4.7.0 6677056 36828 _price 439.2 6677057 36828 _wp_trash_meta_comments_status a:0:{} 6677058 36828 _wp_desired_post_slug notebook-black-spire-v-nitro-vn7-591g 6677059 36828 _wxr_import_has_attachment_refs 1 6677060 36828 _wp_page_template default 6677049 36828…

VIEW QUESTION
Back To Top
Search