=== Duplicate Attribute ===
Contributors: Xpressionsd
Donate link: https://buymeacoffee.com/xpressionsd
Tags: woocommerce, products, attributes, duplicate, taxonomy
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Duplicate WooCommerce global product attributes including all terms, term order, and term meta (like color previews).

== Description ==

This plugin adds a "Duplicate Attribute" page under **Products** in the WordPress admin, allowing you to:

* Duplicate WooCommerce global product attributes
* Copy all attribute settings (name, slug, type, order by, visibility)
* Copy all attribute terms in the same order
* Copy all term meta (e.g. color preview codes, custom fields)
* Preserve parent/child hierarchy for terms

Perfect if you need to quickly replicate existing attribute taxonomies for new products or stores.

== Installation ==

1. Download the plugin and unzip it.
2. Upload the `duplicate-attribute` folder to `/wp-content/plugins/`.
3. Activate the plugin from the **Plugins** menu in WordPress.
4. Go to **Products → Duplicate Attribute**.
5. Select the attribute you want to duplicate and the attribute you want to populate with the same terms or create a new one from the Attributes menu and then come back to the "Duplicate Attribute" section to select it.

== Frequently Asked Questions ==

= Where do I find the duplicate option? =  
After activation, a new menu item appears under **Products → Duplicate Attribute**.  
There, you can see all existing attributes and click **Duplicate**.

= Does it copy the term meta like color previews? =  
Yes. All term meta (including custom fields like `preview` color codes) are copied.

= Will it keep the same order of terms? =  
Yes. The plugin duplicates terms in the same order as the original attribute.


== Screenshots ==

1. Plugin Menu location
2. Admin screen (Duplicate Attribute page)

== Changelog ==

= 1.0 =
* Initial release — duplicate attributes, terms with meta, preserves order and hierarchy.

== License ==

This plugin is licensed under the GPL v2 or later.  
You are free to use, modify, and distribute it.

