by this action can add extra meta to order
add_action(‘woocommerce_checkout_update_order_meta’,function( $order_id, $posted ){
update_post_meta( $order_id, ‘my_custom_meta_key’, ‘my data’ );
} , 10, 2);
$order_id is the id of the order, which is stored as a custom post type
$posted is all the data from $_POST
Related Posts:
- Add multiple attributes to product from php
- How can I concatenate variables to search results title? [closed]
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Get value from an input field and pass into update_meta_data as $meta_value
- Hide prices and checkout functionality in woocommerce
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- Woocommerce hook after creating order? [closed]
- Function to Set Product type in Woocommerce [closed]
- Update Multiple Post Meta for the Same Post In One call?
- How can I add a custom meta value on file upload?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to get custom field image url of specific size
- Remove action from woocommerce barcode plugin [closed]
- Woocommerce Shipping module available only for type of products [closed]
- WooCommerce – Adding Custom Order Without No Product [closed]
- XML sitemap over product variations
- Make the checkbox meta field checked by default
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- Manually add order item with fixed product_id in WooCommerce
- How can I display a contact form for out of stock products in WooCommerce?
- HTML in WooCommerce settings
- WooCommerce shop page orderby [closed]
- Reduce Drop down Menu Width in WordPress
- What is generating my meta og:description?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- How to enable specific plugin only based around shop manager role?
- Why required field not working in Country dropdown in WooCommerce –
- How to modify WCMP Rest API response?
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- get current date + 90 days and checking every day
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- How to get a list of bundled products using wp_query in woocommerce
- Add item to the woocommerce dashboard menu from a plugin
- How to remove bulk actions from custom post type
- How to get the particular product quantity in orders in Woocommerce [closed]
- Get orders of a specific customer woocommerce
- wc_get_template new template does not showing up
- Woocommerce – WordPress Roles & Capabilities
- Search users with custom meta data
- Sell access to form [closed]
- How to change layout of shop page in wordpress? [closed]
- I want to filter my products with attributes [closed]
- Automatic recurring payment using YITH subscription and Dokan Stripe
- How to get custom minimum price in Woocommerce
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Edit all $wp_scripts at once to $in_footer = false
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Restrict posts to customers with complete WooCommerce orders only
- Change Dashboard URL from wp-admin to wp-admin/index.php
- product available stock day by day
- Hide fields in woocommerce settings
- woocommerce – adding wrapper around custom made woocommerce form fields
- Help to Create a Simple Plugin to make a post
- How can i solve php upgrade problem
- show wc_add notices on particular page in woo commerce custom plugin development
- How to Upload images to a custom folder in upload folder using media uploader
- I have English words in Kurdish pages
- Google Maps for Woocommerce Checkout
- Custom form data not displaying in cart page?
- category page multiple products add to cart any plugin available for woocommerce
- best way to handle subscriptions with a licence?
- Get and Update Most Meta Value as an array in HTML form
- woocommerce with external ftp site
- Meta Key array building with multiple input values from fields
- WordPress eMails not working
- Add WooCommerce vendor slug to auto-generated SKU
- How Can I display Specific User Pages?
- Configuring default woo commerce login with modal popup
- Saving data only when payment is successful
- how to make settings page for woocommerce plugin?
- redirect to a custom page
- Template conflict with WC Payment Method
- Problem with conditional woocommerce custom checkout field
- How can I make my plugin display custom post meta data on the front end?
- How to allow customers to input a text as a product variation *and* charge per character?
- Which WordPress version to use for improved plugin compatibility? [closed]
- WooCommerce doesn’t show UK countries in the shipping options [closed]
- getting image alt text via ACF plugin in WordPress [closed]
- WooCommerce custom query and paging: Not Found error
- WooCommerce & WooCommerce Shopee Intergration
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Am I allowed to resell WordPress Premium Plugins under GPL? [closed]
- Translate text for empty product
- which plugin is this? [closed]
- Adding a script & php to functions.php
- Override the plugin class and function
- Woocommerce Product Page Collapsible Box Using CSS
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- How can I make a quotation engine like this website in WooCommerce?
- Template selector for woocommerce product
- Update post meta Rest Api
- ShipStation WooCommerce Integration error
- Add Text in Single Product Page On a Specific Category
- Brands Filter Not Working For On Sale Products
- Can we install 3d product configurator into wordpress