R2K Terms Copier

外掛說明

R2K Terms Copier is a simple and powerful WordPress plugin that allows you to duplicate any taxonomy term (categories, tags, or custom taxonomies) along with all associated meta data without relationships.

Key Features

  • One-Click Duplication: Simply hover over any term in the taxonomy list and click “Duplicate”
  • Complete Meta Data Copy: All term meta data is automatically copied to the duplicate
  • Preserves Relationships: Parent-child term relationships are maintained
  • Smart Naming: Automatically appends “(Copy)” to duplicated terms, with automatic numbering if duplicates exist
  • Works with All Taxonomies: Compatible with categories, tags, and any custom taxonomies
  • Security First: Includes nonce verification and capability checks
  • User-Friendly: Clear success and error messages

How It Works

  1. Navigate to any taxonomy term list (e.g., Posts Categories)
  2. Hover over the term you want to duplicate
  3. Click the “Duplicate” link that appears in the row actions
  4. The term is instantly duplicated with all its meta data

Use Cases

  • Duplicate complex category structures with custom meta fields
  • Create template terms for reuse
  • Quickly create variations of existing terms
  • Copy terms with ACF or other custom field data
  • Duplicate hierarchical term structures

Developer Hooks

The plugin provides a filter for developers to customize behavior:

  • r2k_terms_copier_skip_meta_keys – Filter to exclude specific meta keys from duplication

Developer Information

Filters

  • r2k_terms_copier_skip_meta_keys – Array of meta keys to skip during duplication

Example usage:
add_filter( ‘r2k_terms_copier_skip_meta_keys’, function( $keys ) { $keys[] = ‘my_custom_key’; return $keys; } );

Support

For support, feature requests, or bug reports, please visit the plugin support page or contact the developer.

螢幕擷圖

  • The “Duplicate” link appears when hovering over any term in the taxonomy list
  • Success message after duplicating a term

安裝方式

Automatic Installation

  1. Go to Plugins Add New in your WordPress admin
  2. Search for “R2K Terms Copier”
  3. Click “Install Now” and then “Activate”

Manual Installation

  1. Upload the r2k-terms-copier folder to /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. No configuration needed – it works immediately!

常見問題集

Does this work with custom taxonomies?

Yes! R2K Terms Copier works with all taxonomies including categories, tags, and any custom taxonomies registered in WordPress.

Will child terms be duplicated?

Currently, only the selected term is duplicated. Child terms are not automatically duplicated, but the parent-child relationship is preserved if the original term had a parent.

What meta data is copied?

All term meta data is copied by default. You can use the r2k_terms_copier_skip_meta_keys filter to exclude specific meta keys if needed.

What permissions are required?

Users need the manage_categories capability to duplicate terms.

Can I customize the duplicate name?

The plugin automatically appends “(Copy)” to the term name. If a term with that name already exists, it will add a number (e.g., “Term (Copy) 1”).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈R2K Terms Copier〉的開發相關工作。

參與者

將〈R2K Terms Copier〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release
  • One-click term duplication
  • Complete meta data copying
  • Parent-child relationship preservation
  • Smart naming with automatic numbering
  • Security features (nonce verification, capability checks)
  • Admin notices for user feedback

1.0.1

  • Support Polylang
  • Redirect to edit term screen after copy