PHPackages                             megumi/theme\_customizer\_control - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. megumi/theme\_customizer\_control

ActiveLibrary

megumi/theme\_customizer\_control
=================================

WordPress theme customizer custom control

1216PHP

Since Nov 9Pushed 12y ago2 watchersCompare

[ Source](https://github.com/miya0001/theme_customizer_control)[ Packagist](https://packagist.org/packages/megumi/theme_customizer_control)[ RSS](/packages/megumi-theme-customizer-control/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Megumi\_ThemeCustomizerControl() Class
======================================

[](#megumi_themecustomizercontrol-class)

Class for theme customizer custom control.
This class allows to use html brefore and after form fields.

How to install in your project.
-------------------------------

[](#how-to-install-in-your-project)

### Add composer.json like below

[](#add-composerjson-like-below)

```
{
    "require": {
        "megumi/theme_customizer_control": "dev-master"
    }
}

```

### Download this package in your project.

[](#download-this-package-in-your-project)

```
composer install

```

### Load this class.

[](#load-this-class)

```
require(dirname(__FILE__).'/vendor/autoload.php');

```

Example
-------

[](#example)

```
$wp_customize->add_section('themename_color_scheme', array(
    'title'    => __('Color Scheme', 'themename'),
    'priority' => 120,
));

$wp_customize->add_setting('setting_name', array(
    'default'        => 'This is default!',
    'capability'     => 'edit_theme_options',
    'type'           => 'option',
));

$wp_customize->add_control(new Megumi_CustomizeControl(
    $wp_customize,
    'uniq_id_for_the_control',
    array(
        'settings' => 'setting_name',
        'label'    => 'This is label',
        'section'  => 'themename_color_scheme',
        'type'     => 'text',
        'choices'  => $themes,
        'label_after' => 'This is label displayed after this control'
    )
));

```

License
-------

[](#license)

GPL2

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1366a673de80559a738e11fb4bd3600842f45ebc21abe8e2842e7205686a3ca0?d=identicon)[miya0001](/maintainers/miya0001)

---

Top Contributors

[![miya0001](https://avatars.githubusercontent.com/u/309946?v=4)](https://github.com/miya0001 "miya0001 (3 commits)")

### Embed Badge

![Health badge](/badges/megumi-theme-customizer-control/health.svg)

```
[![Health](https://phpackages.com/badges/megumi-theme-customizer-control/health.svg)](https://phpackages.com/packages/megumi-theme-customizer-control)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
