Last active
October 8, 2015 05:23
-
-
Save kilbot/448a912a714919af0291 to your computer and use it in GitHub Desktop.
Hook to access product meta on order creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_order_item_meta_hook( $meta_id, $order_item_id, $meta_key, $meta_value ){ | |
if( $meta_key == 'Delivery Date' ){ | |
// Do something | |
} | |
} | |
add_action( 'added_order_item_meta', 'custom_order_item_meta_hook', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment