It means you shouldn’t access $order->meta_data (and other properties) directly, but use the provided getter and setter functions.
In this case, use $order->get_meta_data().
This method is (eventually) inherited from the WC_Data class.
Related Posts:
- How can we display product price $104 on the cart while the credit card payment method is checked?
- Customise Grouped Product display in Woocommerce with custom column
- external Integration with wordpress timeout error
- Custom fields in the billing address section woocommerce
- Add File field in WooCommerce Box office plugin
- Is it ever okay to include inline CSS in plugins?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Best way to abort plugin in case of insufficient PHP version?
- What do you think about custom designed plugin/theme options UIs?
- Optimize shortcode callbacks
- Which to use to execute code during the saving of a plugin settings page?
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- Using Primary Color in Plugin Block
- How to iterate through custom posts and add the title to an array
- When is it appropriate to put functions on page template vs. functions.php?
- How to create custom home page via plugin?
- product-attribute-slug-is-too-long-28-characters-max
- Sessions not creating correctly in custom function
- Featured Image not showing in admin
- set_sale_price in WooCommerce [closed]
- Woocommerce – Hide a Column in Cart Table
- How to get orders with used coupon in WooCommerce
- How to update total price of completed order in woocommerce? [closed]
- Get the password key when using the wp_new_user_notification_email filter
- How do I change the initial quantity of a product in woocommerce?
- How to deal with equal & similar arguments for a function?
- Executing a function upon webhook calling wordpress
- How to check if Woocommerce Order number equals to post ID?
- Customizer: widget-synced triggers twice
- How plugins_loaded works?
- how to use hook deleted_user into custom function to delete user from custom table
- Where to store the name of a custom table?
- WordPress is automatically linking plain text email addresses
- Is Using WordPress Supplied WYSIWYG Advisable?
- ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
- WooCommerce Admin Reports : Get custom product report based on date range
- Clearing caches on plugin uninstall
- How to use a hook to override an update_post_meta call in a plugin?
- Woocommerce checkout update totals with datepicker
- Strange issue saving custom field data for a WooCommerce order
- Woocommerce – Convert Delivery method into a custom field
- Show disclaimer with accept button before redirecting to the payment gateway website
- How do I apply a custom discount to individual product total prices depending on their categories on the cart and checkout pages of WooCommerce? [closed]
- In woocommerce cart item we can add custom text but how can i add custom link? [closed]
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- custom payment gateway in woocommerce failed to connect to remote api server
- Can’t get woocommerce_get_price_html to work [closed]
- Customize WooCommerce my account dashboard through plugin
- Woocommerce Composite Products – Add a composite product to cart programmatically via ajax [closed]
- Redirect to another page using contact form 7? [closed]
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- UWooCommerce – add cart discount programmatically?
- Show message from backend
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Woocommerce inventory [closed]
- WooCommerce Endpoints content
- How to call code when adding WooCommerce menu items via woocommerce_account_menu_items
- Duplicate shipping method logic to another shipping method [closed]
- Custom Plugin Options Won’t Update
- Converting core modification to a plugin
- How to replace settings in WordPress plugin from a theme
- How to remove/replace current page template?
- How to determine which capability to use?
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Change reminder email date to 14 days before
- How to make every image title equal to alt text(wordpress/woocommerce)?
- How to create a custom post-new.php page for plugin , no wp menu
- product-attribute-slug-is-too-long-28-characters-max
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- Getting products information, in woocommerce based on products ID
- Save meta box data from selected dropdown list in bbpress reply form
- WC REST API Error Handling
- want to confirm popup with “Yes” and “No” button when user click on add to cart
- How to remove the WooCommerce Product->Category thumbnail from admin [closed]
- Override WooCommerce files from plugin
- woocommerce add a new bulk action in the bulk actions dropdown in the orders list
- Create Customization panel for Plugins not for theme
- Handle changed Woocommerce function
- Making Woocommerce optimized for more than 500k products
- Implementing Select2 plugin into WordPress
- Declaring a new woo commerce product type i get this error
- Managing Custom Designed Content
- Can I access WordPress API’s from within plugin scripts?
- Change the search results header from plugin
- Client Profiles
- Developing Themes on WordPress, Looking for Excellent Tutorials [closed]
- How to only Load scripts on variable products page
- How to design WooCommerce-like admin tabs for plugin settings page?
- Woocommerce: block user removing cart item
- Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
- What is the meta_query key name for the woo product average rating? [closed]
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Is there any other ways to replicating changes on live from staging without pushing from git
- Can I log the searches that are returning 404 in the DB?
- I want to redirect user to an amazon product page from my wordpress website when they add product to there cart [closed]
- how to works woocommerce cart hash
- Woocommerce Payment Plugin with Mycred being the payment processor
- Resending woo-commerce order emails from frontend
- Are woocommerce_thankyou hook and is_order_received_page() redundant? [closed]