PHPackages                             helgatheviking/kia-customizer-toggle-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. helgatheviking/kia-customizer-toggle-control

ActiveWordpress-dropin[Utility &amp; Helpers](/categories/utility)

helgatheviking/kia-customizer-toggle-control
============================================

A Toggle Control for the WordPress Customizer.

1.0.1(3y ago)0326[1 issues](https://github.com/helgatheviking/kia-customizer-toggle-control/issues)GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Oct 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/helgatheviking/kia-customizer-toggle-control)[ Packagist](https://packagist.org/packages/helgatheviking/kia-customizer-toggle-control)[ Docs](https://github.com/helgatheviking/kia-customizer-toggle-control)[ RSS](/packages/helgatheviking-kia-customizer-toggle-control/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

WordPress Customizer Toggle Control
===================================

[](#wordpress-customizer-toggle-control)

A toggle control for the WordPress Customizer

[![Animation. Three toggle inputs that are switched on and off.](https://user-images.githubusercontent.com/507025/136673379-d3801861-583c-4c05-8ddc-918ef3c6f77e.gif)](https://user-images.githubusercontent.com/507025/136673379-d3801861-583c-4c05-8ddc-918ef3c6f77e.gif)

Installation
------------

[](#installation)

Add the following to your `composer.json` file and run `composer update`

```
"repositories": [
{
    "type": "git",
    "url": "https://github.com/helgatheviking/kia-customizer-toggle-control.git"
}
],
"require": {
"helgatheviking/kia-customizer-toggle-control": "dev-main"
},
"extra": {
"installer-paths": {
    "includes/{$name}": [
        "helgatheviking/kia-customizer-toggle-control"
    ]
}

```

Adding the control
------------------

[](#adding-the-control)

```
/**
 * Add range slider to Customizer.
 *
 * @param  obj     $wp_customize
 */
function kia_customizer( $wp_customize ) {
    // Include the class
    require_once dirname( __FILE__ ) . '/includes/kia-customizer-toggle-control/class-kia-customizer-toggle-control.php';

    // Register the control types that we're using as JavaScript controls.
	$wp_customize->register_control_type( 'KIA_Customizer_Toggle_Control' );

    $wp_customize->add_setting(
        'my_setting',
        array(
            'default'              => false,
            'type'                 => 'option',
            'capability'           => 'edit_themes',
            'transport'            => 'postMessage',
            'sanitize_callback'    => array( 'KIA_Customizer_Radio_Image_Control', 'sanitize' ),
            'sanitize_js_callback' => array( 'KIA_Customizer_Radio_Image_Control', 'sanitize' ),
        )
    );

    $wp_customize->add_control(
        new KIA_Customizer_Range_Control(
            $wp_customize,
            'my_control',
            array(
                'type'        => 'kia-range',
                'label'       => __( 'Turn on setting', 'your-textomain' ),
                'description' => __( 'An example toggle', 'your-textdomain' ),
                'section'  => 'my_section',
	            'settings' => 'my_setting',
            )
        )
    );

}
add_action( 'customize_register', 'kia_customizer' );
```

Credits
-------

[](#credits)

Huge props to Rich Tabor's [Login Designer](https://github.com/thatplugincompany/login-designer) and Per Soderlind's [Customizer Toggle Control](https://github.com/soderlind/class-customizer-toggle-control)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~234 days

Total

2

Last Release

1439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4015f6437cf56ccff9d0beb2085f38f94e240969384f8301a540d3eee6d33d4?d=identicon)[helgatheviking](/maintainers/helgatheviking)

---

Top Contributors

[![helgatheviking](https://avatars.githubusercontent.com/u/507025?v=4)](https://github.com/helgatheviking "helgatheviking (7 commits)")

---

Tags

wordpresswpcontrolcustomizer

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/helgatheviking-kia-customizer-toggle-control/health.svg)

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

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.4k1](/packages/proteusthemes-wp-customizer-utilities)[ayecode/wp-super-duper

Lets you create a widget, block and shortcode all from the one file .

321.5k](/packages/ayecode-wp-super-duper)

PHPackages © 2026

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