Plugin Directory

Changeset 3451399


Ignore:
Timestamp:
02/01/2026 02:09:05 PM (2 months ago)
Author:
systemsrtk
Message:

v1.0.1

Location:
r2k-terms-copier
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • r2k-terms-copier/trunk/r2k-terms-copier.php

    r3431967 r3451399  
    44 * Plugin URI: https://wordpress.org/plugins/r2k-terms-copier/
    55 * Description: Duplicate taxonomy terms including all meta data without relationships.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: R2K TEAM
    88 * Author URI: https://www.r2k.co.il/
     
    102102        // Duplicate the term
    103103        $new_term_id = $this->duplicate_term( $term_id, $taxonomy );
     104
     105
     106        // if polylang is active, set the language as same as the original term
     107        if(function_exists('pll_set_term_language')){
     108            pll_set_term_language($new_term_id, pll_get_term_language($term_id));
     109        }
    104110       
    105111        if ( is_wp_error( $new_term_id ) ) {
     
    109115       
    110116        // Redirect back to taxonomy list with success message
    111         wp_safe_redirect( add_query_arg( 'duplicated', '1', admin_url( 'edit-tags.php?taxonomy=' . $taxonomy ) ) );
     117        wp_safe_redirect( add_query_arg( 'duplicated', '1', admin_url( 'term.php?taxonomy=' . $taxonomy.'&tag_ID='.$new_term_id ) ) );
    112118        exit;
    113119    }
  • r2k-terms-copier/trunk/readme.txt

    r3431967 r3451399  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    9898* Admin notices for user feedback
    9999
     100= 1.0.1 =
     101* Support Polylang
     102* Redirect to edit term screen after copy
     103
     104
    100105== Upgrade Notice ==
    101106
Note: See TracChangeset for help on using the changeset viewer.