WordPress User & WooCommerce Customers Import Export Plugin is one of the best plugins for the import and export of users. To import and export WooCommerce membership plans along with the user membership data during user import/export, paste the below code snippet 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.
Or if, you are adding the custom code snippets using a third-party plugin, refer to this article.
Code Snippet: