Add, update or remove product custom field in WooCommerce

I use the following lines to save a Value to the database. I have one question regarding this code, when I delete input it still keeps it. The only way to delete that is to put (space) as input. $…

How to display sub field (image) with shortcode in WordPress?

These are the custom fields composition: 1 Group Footer 1.1 Group Col2 1.1.1 bbcimg (this is the image ID) 1.1.2 bbc-rss (this is the RSS feed ID) I have the following code displaying the bbc-rss: <…

Save product custom field value as custom order item meta in WooCommerce

I have problem with custom field in woocommerce (latest version). I need your help. My code function completed_order($order_id) { $order = wc_get_order( $order_id ); $customer_id = $order->…