Meta Box

Meta Box – WordPress Custom Fields Framework The code below relates to the meta box plugin. And the code below relates to 2 custom post types. Players and Coaches. And then adding meta fields to those custom post types. // Custom Post 1 register_post_type(...

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...

Pin It on Pinterest