regular_price_query = "UPDATE yourwordpressdb.wp_postmeta SET meta_value = %s WHERE post_id = %s AND meta_key = '_regular_price'"
price_query = "UPDATE yourwordpressdb.wp_postmeta SET meta_value = %s WHERE post_id = %s AND meta_key = '_price'"
cursor.execute(regular_price_query, (new_price, product_id))
cursor.execute(price_query, (new_price, product_id))
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)