Skip to content

Adds the ability to add custom fields to the new WooCommerce HPOS orders page.

License

Notifications You must be signed in to change notification settings

CMB2/cmb2-woocommerce-hpos-orders

Repository files navigation

CMB2 WooCommerce HPOS Orders

Custom field for CMB2.

Adds the ability to add custom fields to the new WooCommerce HPOS orders page.

Installation

Follow the example in example-field-setup.php for a demonstration. The example assumes you have both CMB2 and this extension in your mu-plugins directory. If you're using CMB2 installed as a plugin, you can remove the require_once line.

Usage

You can retrieve the meta data using the following:

$test_text_value = wc_get_order( $order_id )->get_meta( 'yourprefix_woo_orders_text', true, 'edit' );

Changelog

1.0.0

  • Release

About

Adds the ability to add custom fields to the new WooCommerce HPOS orders page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published