Title: Duplicate Widget
Author: Scott Reilly
Published: <strong>2011년 12월 12일</strong>
Last modified: 2012년 6월 12일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/duplicate-widget.svg)

# Duplicate Widget

 작성자: [Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[다운로드](https://downloads.wordpress.org/plugin/duplicate-widget.1.0.2.zip)

 * [세부사항](https://ko.wordpress.org/plugins/duplicate-widget/#description)
 * [평가](https://ko.wordpress.org/plugins/duplicate-widget/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/duplicate-widget/#installation)
 * [개발](https://ko.wordpress.org/plugins/duplicate-widget/#developers)

 [지원](https://wordpress.org/support/plugin/duplicate-widget/)

## 설명

A widget that can act as a duplicate of another widget (for synchronized use in 
another sidebar)

Define a widget once, use it in multiple sidebars. This saves you from having to
manually configure each copy of the widget and later having to worry about keeping
them in sync should you ever need to make any changes. Particularly useful for those
who define logic in their themes to conditionally include different versions of 
a sidebar depending on what template is being shown. Depending on use, it is an 
alternative to plugins that introduce in-widget logic to determine when widgets 
should be visible (Widget Logic, Section Widget, Conditional Widgets, etc).

Quick overview of what this plugin does:

 * Adds a widget called “Duplicate”. The widget’s only setting is a dropdown listing
   all active widgets. The selected widget will be the widget duplicated by the 
   duplicate widget.
 * A duplicate widget shows the same title and content as its source widget, even
   if those values later get changed in the source widget.
 * A widget can be duplicated any number of times and can appear multiple times 
   within the same page. (Yes, even within the same sidebar, though why would you
   do that?)
 * A duplicate widget will abide by the configuration of the sidebar it is placed
   in, not the configuration of the sidebar containing the source widget. So it 
   uses ‘before_widget’, ‘after_widget’, ‘before_title’, ‘after_title’ values of
   its own sidebar.
 * Widgets that are duplicated will have “[D]” prepended to their name in the widget
   titlebar in the admin to denote they have duplicates. Also, at the bottom of 
   the widget’s configuration form (when the widget is expanded), a short blurb 
   also explains that the widget has duplicate(s) and a count of how many duplicates
   it has.
 * If a widget is deactivated or deleted, if it has any duplicates, they get deleted
   as well.
 * The widget id and widget type of the source widget are included as HTML classes
   in the duplicate widget’s markup.

Links: [Plugin Homepage](http://coffee2code.com/wp-plugins/duplicate-widget/) | 
[Plugin Directory Page](https://wordpress.org/extend/plugins/duplicate-widget/) 
| [Author Homepage](http://coffee2code.com)

### Filters

The plugin exposes four actions for hooking. Typically, customizations utilizing
these hooks would be put into your active theme’s functions.php file, or used by
another plugin.

#### c2c_before_duplicate_widget (action)

The ‘c2c_before_duplicate_widget’ hook allows you to output text, or perform some
sort of action, just before the output of the duplicate widget.

Arguments:

 * $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate)
 * $args (array) : The configuration for the widget and sidebar

Example:

    ```
    // Output an opening <div> before duplicate widget content
    add_action( 'c2c_before_duplicate_widget', 'my_c2c_before_duplicate_widget', 10, 2 );
    function my_c2c_before_duplicate_widget( $instance, $args ) {
        echo '<div class="a_duplicate_widget">;
    }
    ```

#### c2c_after_duplicate_widget (action)

The ‘c2c_after_duplicate_widget’ hook allows you to output text, or perform some
sort of action, just after the output of the duplicate widget.

Arguments:

 * $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate)
 * $args (array) : The configuration for the widget and sidebar

Example:

    ```
    // Output an closing </div> after duplicate widget content
    add_action( 'c2c_after_duplicate_widget', 'my_c2c_after_duplicate_widget', 10, 2 );
    function my_c2c_after_duplicate_widget( $instance, $args ) {
        echo '</div>;
    }
    ```

#### c2c_before_duplicate_widget_form (action)

The ‘c2c_before_duplicate_widget_form’ hook allows you to output text, or perform
some sort of action, just before the output of the duplicate widget’s configuration
form (in the WP admin).

Arguments:

 * $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate)

Example:

    ```
    // Display a message just before the duplicate widget settings form
    add_action( 'c2c_before_duplicate_widget_form', 'my_c2c_before_duplicate_widget_form' );
    function my_c2c_before_duplicate_widget_form( $instance ) {
        echo '<p>Note: this is a note above the widget settings form.</p>';
    }
    ```

#### c2c_after_duplicate_widget_form (action)

The ‘c2c_after_duplicate_widget_form’ hook allows you to output text, or perform
some sort of action, just after the output of the duplicate widget’s configuration
form (in the WP admin).

Arguments:

 * $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate)

Example:

    ```
    // Display a message just after the duplicate widget settings form
    add_action( 'c2c_after_duplicate_widget_form', 'my_c2c_after_duplicate_widget_form' );
    function my_c2c_after_duplicate_widget_form( $instance ) {
        echo '<p>Note: this is a note below the widget settings form.</p>';
    }
    ```

## 스크린샷

[⌊A screenshot of the "Widgets" admin page. The "Text: Mini Bio" widget in the Main
Sidebar has a duplicate in Footer Area One.⌉⌊A screenshot of the "Widgets" admin
page. The "Text: Mini Bio" widget in the Main Sidebar has a duplicate in Footer 
Area One.⌉[

A screenshot of the “Widgets” admin page. The “Text: Mini Bio” widget in the Main
Sidebar has a duplicate in Footer Area One.

## 설치

 1. Unzip `duplicate-widget.zip` inside the `/wp-content/plugins/` directory for your
    site (or install via the built-in WordPress plugin installer)
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. Use the ‘Duplicate’ widget to duplicate any other active widget

## FAQ

  Installation Instructions

 1. Unzip `duplicate-widget.zip` inside the `/wp-content/plugins/` directory for your
    site (or install via the built-in WordPress plugin installer)
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. Use the ‘Duplicate’ widget to duplicate any other active widget

  What happens to the duplicate(s) of a widget when that widget gets deactivated
or deleted?

When a widget gets deactivated (dragged to the “Inactive Widgets” section of the
widgets admin page) or deleted, all of its duplicates get deleted. The plugin provides
numerous cues to make you aware of what widgets have duplicates.

  Why can’t I see a newly added widget as an option in a duplicate widget’s dropdown?

If a widget is newly activated, any existing active duplicate widgets will not have
it listed in their dropdowns immediately. Either a page reload must occur or the
duplicate widget must be saved (which causes the widget to be retrieved via AJAX
and thus the dropdown is regenerated).

  Can a widget be duplicated into another sidebar on the same page (so it’ll appear
twice on the page)?

Yes.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Duplicate Widget”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

[자국어로 “Duplicate Widget”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/duplicate-widget)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/duplicate-widget/)는,
[SVN 저장소](https://plugins.svn.wordpress.org/duplicate-widget/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/duplicate-widget/)을 [RSS](https://plugins.trac.wordpress.org/log/duplicate-widget/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.0.2

 * Use string instead of variable to specify translation textdomain
 * Re-license as GPLv2 or later (from X11)
 * Add ‘License’ and ‘License URI’ header tags to readme.txt and plugin file
 * Remove ending PHP close tag
 * Note compatibility through WP 3.4+

#### 1.0.1

 * Minor bugfixes
 * Add Upgrade Notice section to readme.txt

#### 1.0

 * 초기 릴리즈

## 기초

 *  버전 **1.0.2**
 *  최근 업데이트: **9년 전**
 *  활성화된 설치 **1,000+**
 *  워드프레스 버전 ** 3.1 또는 그 이상 **
 *  다음까지 시험됨: **3.4.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/duplicate-widget/)
 * 태그:
 * [coffee2code](https://ko.wordpress.org/plugins/tags/coffee2code/)[duplicate](https://ko.wordpress.org/plugins/tags/duplicate/)
   [sidebar](https://ko.wordpress.org/plugins/tags/sidebar/)[widget](https://ko.wordpress.org/plugins/tags/widget/)
   [widgets](https://ko.wordpress.org/plugins/tags/widgets/)
 *  [고급 보기](https://ko.wordpress.org/plugins/duplicate-widget/advanced/)

## 평점

 별 5점 만점에 4.3점.

 *  [  9/5-별점 후기     ](https://wordpress.org/support/plugin/duplicate-widget/reviews/?filter=5)
 *  [  1/4-별점 후기     ](https://wordpress.org/support/plugin/duplicate-widget/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/duplicate-widget/reviews/?filter=3)
 *  [  1/2-별점 후기     ](https://wordpress.org/support/plugin/duplicate-widget/reviews/?filter=2)
 *  [  1/1-별점 후기     ](https://wordpress.org/support/plugin/duplicate-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/duplicate-widget/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/duplicate-widget/reviews/)

## 기여자

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/duplicate-widget/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](http://coffee2code.com/donate)