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
- Objective Best Practices for Plugin Development? [closed]
- How to create an API for my plugin?
- Is it ever okay to include inline CSS in plugins?
- Plugins in symlinked directories?
- How can I configure Docker for developing and deploying a custom theme?
- No Error Log File, no debug info
- Is the new WordPress 3.1 admin bar pluggable and how can I extend it?
- How to use PanelColorSettings in custom Gutenberg block?
- Getting a peer review for my new plugin?
- Using filters and actions for plugin API?
- How to Change the Entire WordPress Admin panel Look and Feel?
- product-attribute-slug-is-too-long-28-characters-max
- How to use wp_set_password in a plugin?
- Woocommerce add custom button to backend order table
- Plugin vs Settings load order (woocommerce dependency)
- How do I hook a custom discount to change a WC_Order price total on WooCommerce?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- Add multiple shipping rates from add_rate function with custom ID
- Delete a specific item menu when I deactivate my plugin
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- Plugin development: get_post_meta is not working [closed]
- How do I add custom column to woocommerce cart?
- WordPress not working on localhost
- Adding functions to hooks from within a class
- Applying OO patterns and principles to plugin development
- WooCommerce Conditional Tag inside plugin
- WooCommerce registration password field not displaying
- update woocommere total value on checkout based on selected payment method
- how to add custom functionality after woocommerce place order button
- Is it possible to change a term slug before being saved to the database?
- Add code inside specific wordpress standard function
- PHP – Extend WordPress Woocommerce Revenue Analytics with custom field
- How to extend WooCommerce API to show bookable product availability rules?
- How to Bind one post object Type with other postobject Type in Advanced Custom field [closed]
- Customize WooCommerce my account dashboard through plugin
- Search: how to extend the existing search to include a custom table
- Is there documentation reference for forms in menu and setting pages?
- Enqueue script globally
- Custom entity search and display
- Plugin: database creation
- Loading Modernizr (or other JavaScript libraries) for use in a plugin
- Woocommerce order empty items array
- How to get all product in the woo-commerce? [closed]
- Can woocommerse be used dynamically for billing from another plugin for payment processing?
- Can we use a library under MIT license in a WooCommerce plugin?
- Logout after clicking URL link results in “headers already sent” error
- How to call code when adding WooCommerce menu items via woocommerce_account_menu_items
- Woocommerce – Provide Associated Category Link for Product List Plugin [closed]
- Converting core modification to a plugin
- Setting a post’s category
- Extract Information from post content (using regex?)
- Remove Products From Category
- want to show CMB2 metabox on woocommerce product data tab
- How to create a custom post-new.php page for plugin , no wp menu
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Trying to run a Ajax request from a checkout form in woocommerce via a custom plugin
- Securing custom rest API endpoints with public access from PWA
- WooCommerce – Stop assigning order numbers
- Adding customs fields on each product on the cart
- Override woocommerce loop-start.php from theme using plugin?
- Save meta box data from selected dropdown list in bbpress reply form
- Metabox types list
- Where to save Gutenberg plugin data?
- WordPress how do I echo SUM from a column of a MySQL table by user id AND type_operation
- Rate limiting ajax requests in WordPress
- WC REST API Error Handling
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- How to remove the WooCommerce Product->Category thumbnail from admin [closed]
- How to prevent users from deleting their accounts?
- woocommerce wc_get_product is not fetching all the product of particular category
- Hiding class namespace from plugin’s extensions
- woocommerce add a new bulk action in the bulk actions dropdown in the orders list
- How to trigger WooCommerce user profile edit change?
- Woocommerce list variations that are added already to cart in Single Product
- WC_Geolocation not found inside plugin
- Set widget icon in Customizer?
- Create Customization panel for Plugins not for theme
- How to use functions from Woocommerce documentation?
- Add function to Dokan ajax class
- PHP includes with AJAX actions
- how to retrieve post_id under woocommerce_add_to_cart_validation hook?
- Custom Post Type and Functions
- Woo-commerce: Adding additional page sections using a child theme
- woocommerce single product page hook not working
- Best practice: What belongs in theme and what in plugin for large eCommerce website
- Adding Meta box to thrid-party plugin
- Client Profiles
- How to remove city field from order in dashboard?
- How to design WooCommerce-like admin tabs for plugin settings page?
- Woocommerce: block user removing cart item
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Create Custom Coupon Type
- What is the meta_query key name for the woo product average rating? [closed]
- Is there any other ways to replicating changes on live from staging without pushing from git
- WooCommerce adds a newline symbol (\n) between email recipients
- I want to redirect user to an amazon product page from my wordpress website when they add product to there cart [closed]