Title: Code to Widget
Author: Sean Klein
Published: <strong>2010年5月24日</strong>
Last modified: 2012年1月2日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# Code to Widget

 作者: [Sean Klein](https://profiles.wordpress.org/seanklein/)

[ダウンロード](https://downloads.wordpress.org/plugin/code-to-widget.1.2.zip)

 * [詳細](https://ja.wordpress.org/plugins/code-to-widget/#description)
 * [レビュー](https://ja.wordpress.org/plugins/code-to-widget/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/code-to-widget/#installation)
 * [開発](https://ja.wordpress.org/plugins/code-to-widget/#developers)

 [サポート](https://wordpress.org/support/plugin/code-to-widget/)

## 説明

Code to Widget Plugin uses PHP files from a specified directory, and (if the file
has the proper template tags) adds a Widget.

### Details

Code to Widget provides an easy way to create widgets, without having to deal with
writing the widget class everytime

### Configuration

The plugin provides an interface for selecting a specific folder to search for widgets
in. The folder path entered into the settings page must be an absolute path. Then
the widgets are easily configurable similar to all other widgets.

The files in the specified folder need to have specific template tags to be added
as widgets. The following code will need to be added to the top of the files:

    ```
    <?php
    /*
    Widget Name: Test Widget 1
    Widget Description: Test 1 widget
    */
    ?>
    ```

A “Widget Title:” field can also be added. That title will be set as the default
widget title when the file is selected on the widget settings screen.

## インストール

 1. Download the plugin archive and expand it.
 2. Put the code-to-widget directory into your wp-content/plugins/ directory
 3. Go to the Plugins page in your WordPress Administration area and click ‘Activate’
    for Code to Widget.
 4. Go to the Code to Widget Options page (Settings > Code to Widget) to set the directory
    for the plugin to search for widgets. The directory to search for widgets must 
    be an absolute path. There are some helpful paths included on the Settings page.

## FAQ

  Why use this plugin?

This plugin adds an easy to use/modify way to create plugins. The only thing a blog
owner needs is the ability to add files to a folder and change the content of those
files. By adding the template tags to the files the content of the file will be 
created as a widget.

  How easy is it to create widgets?

All that is needed to create a widget is to create a PHP file in a specified folder
and add the template tags to that file. Then all that is needed is to go to the 
widget settings page and add the widget to a desired sidebar, and select the file
name from the drop down. Then save the widget.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Code to Widget はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ Sean Klein ](https://profiles.wordpress.org/seanklein/)

[“Code to Widget” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/code-to-widget)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/code-to-widget/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/code-to-widget/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/code-to-widget/)を [RSS](https://plugins.trac.wordpress.org/log/code-to-widget/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.2

 * NOTE: Maintenance update
 * General Code improvements
 * Cleanup of some code
 * Extracting as much code into views as possible

#### 1.1.4

 * Fixing an issue with the Folder check and the smiley face

#### 1.1.3

 * Fixing a bug in a constant

#### 1.1.2

 * Updating compatibility version

#### 1.1.1

 * Fixing the version number

#### 1.1

 * Added some directory information so it is easier to find the absolute path to
   the folder to get widgets from
 * Added a “Test Directory” button to check and see if the directory entered is 
   usable for the plugin

#### 1.0

 * Initial Release

## メタ

 *  バージョン **1.2**
 *  最終更新日 **15年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 3.0またはそれ以降 **
 *  検証済み最新バージョン: **3.4.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/code-to-widget/)
 * タグ
 * [code](https://ja.wordpress.org/plugins/tags/code/)[php](https://ja.wordpress.org/plugins/tags/php/)
   [widget](https://ja.wordpress.org/plugins/tags/widget/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/code-to-widget/advanced/)

## 評価

レビューはまだ送信されていません。

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/code-to-widget/reviews/)

## 貢献者

 *   [ Sean Klein ](https://profiles.wordpress.org/seanklein/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/code-to-widget/)