For existing orders, you need to use the wc_get_order()
function.
Related Posts:
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to enable specific plugin only based around shop manager role?
- Replacing a plugin function with a custom renamed function doesn’t work
- Redirect to another page using contact form 7? [closed]
- WordPress Stock Update Programatically
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Configuring default woo commerce login with modal popup
- Move related products after product summary? [closed]
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Woocommerce disable checkout on specific day
- Adding a script & php to functions.php
- Display a text message if the field is not found and not if found
- Scope for PHP Variables Assigned in functions.php or a plugin
- Make specific products accessible only to a user role in WooCommerce
- How to get post URL in the_content filter?
- Add a plugin before main container
- Missing argument 3 for wp_register_sidebar_widget()
- How can I display a contact form for out of stock products in WooCommerce?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- add_query_arg not working
- Shortcode button dosent work for all posts. Work for first post only
- Dropdown menu on custom page with product to choose number of products per page
- Add Product Subtitle to Woocommerce Product Page
- Change wordpress current_time function to different timezone
- woocommerce 3.2.1 not sending order notification emails
- Executing my function once on a specific time
- WooCommerce Custom Product to checkout
- How to stop or remove an action being called inside a function of an extended class
- Automatically add attributes to woocommerce product?
- wordpress plugin is not activating from widget
- Theme my Login plugin, how to update fields
- Edit Yoast SEO breadcrumbs output [closed]
- Date calculations from 2 custom fields
- Override Plugin Script Fucnction in WordPress
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- Adding a new field to the address field type in gravity forms
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- WooCommerce specifc variations for specific user role [closed]
- Nested shortcode functions accessing variable
- How to call WordPress function other files
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- WP Query. Is there a maximum size?
- WordPress get_avatar function not correct working
- Can you echo PHP code from a variable?
- How to get custom minimum price in Woocommerce
- Get product categories and add them to a custom taxonomy
- How to make WooCommerce payment method field optional?
- woocommerce remove coupon link does not work
- Checkbox show / hide output result
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Custom Logo Link WordPress
- How to convert Currency from USD to other IP Based currency in Php function
- how to validate input field in wordpress generated with wpform plugin
- How to add custom plugin data to the cart in woocommerce using custom button on product page?
- add_rewrite_rule to load different page, without changing URL in browser
- implement custom roles in custom plugin
- WordPress Custom Hook with Class method
- Create category for each user
- How to get current cart values using WC_Shortcodes?
- Attempting to list all product categories and the price range of all products within them
- How to get brand children with woocommerce brands
- Display top level parent category as a single product body class (Woocommerce)
- Show prices with tax Inclusive in Minicart widget
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Woocommerce add products to cart
- Creating an array from form inputs before it is posted to the options database
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- Post source link plugin – small modification
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Plugin which unlock free gift when you reach some amount in cart
- is there a way to display product gallery images via cdn
- Share my WordPress plugin for updating how?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Changing wordpress/woocommerce notices default message to other languages (text)
- How can I find related learndash course id from woocommerce product object?
- adding dynamic/multiple slug values in ‘option_none_value’
- How to create algorithm for ordering posts in WordPress?
- Submitting form to PHP
- ACF Fields are not showing up on Homepage
- Precheck fields when I add a new post
- Make modification of add_to_cart button specific to single page
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Get Shortcode output to database for static post_content
- Google Maps for Woocommerce Checkout
- working code, not working – Plugin Dev
- Block plugin update possibilities (but not by hiding notifications)
- Securing langugae folder
- my hook or my function wont run in the cronjob
- Add a WooCommerce Product Variant with attributes programmatically
- post id or permalink auto-incrementing number and reset everyday
- Change Woo Custom Endpoint Titles from a Plugin
- Woocommerce – Change variations output
- Change custom rewrite rule when permalink is updated/changed
- Is admin section completely customizable in terms of styling?