Overwrite meta_key with New meta_key
UPDATE `flowerhhsa_wpbf4c`.`wp_postmeta` SET `meta_key`='key_name' WHERE `meta_key`='other_key_name';
MYSQL Select wordpress post by ID
SELECT * FROM flowerhhsa_wpbf4c.wp_postmeta where post_id = 413;
Add Custom Data to Woocommerce Order
add_action('woocommerce_checkout_update_order_meta',function( $order_id, $posted ) {
    $order = wc_get_order( $order_id );
    $order->update_meta_data( 'selected_date', $_COOKIE['selected_date'] );
    $order->save();
} , 10, 2);

On Checkout the Custom fields will get added.

Woocommerce Preview Emails

Woo Preview Emails

Great for previewing the Woocommerce emails without having to send out a hundred emails for every preview.

XOpi Editor

Edit posts on the fly

XOpi

Search

Your Favourite Posts

  • Your favorites will be here.

Latest Content

© Garth Baker 2024 All rights reserved.

Pin It on Pinterest

Share This