Home > Docs > Order / Coupon / Subscription Export Import Plugin for WooCommerce > Export User Roles and Additional Order Meta Data from WooCommerce

Export User Roles and Additional Order Meta Data from WooCommerce

Last updated on December 23, 2024

The Order, Coupon, Subscription Export Import for WooCommerce plugin offers a convenient solution for effortlessly importing and exporting WooCommerce orders. However, to export the user role and additional metadata of the orders, you need to paste the code snippet below in the functions.php file. Follow the below-mentioned steps:

  • From the WordPress admin dashboard, navigate to Appearance > Theme File Editor.
  • Under Theme Files, select Theme Functions (functions.php).
  • Paste the code snippet at the end of the functions.php file of your active child theme.

Code snippet: