PHPackages                             viktor777/wp-customizable-options - 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. viktor777/wp-customizable-options

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

viktor777/wp-customizable-options
=================================

Library for live editing in preview part of WordPress Customizer.

261JavaScript

Since Jul 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/kuliebiakin/wp-customizable-options)[ Packagist](https://packagist.org/packages/viktor777/wp-customizable-options)[ RSS](/packages/viktor777-wp-customizable-options/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Customizable Options
==============================

[](#wordpress-customizable-options)

Library that allows to edit simple text options in preview part of WordPress Customizer, on frontend.

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

[](#installation)

#### Composer

[](#composer)

```
$ composer require viktor777/wp-customizable-options

```

Usage
-----

[](#usage)

#### Initialization

[](#initialization)

```
register_customizable_options();

```

#### Editable option

[](#editable-option)

```
the_customizable_text( $option, $default = false );

```

#### Change default wrapper

[](#change-default-wrapper)

By default text is wrapped in tag 'span' when admin is in Customizer. You can change it with filter:

```
add_filter( 'the_customizable_text_wrapper_tag', function () {
    return 'div';
} );

```

#### Change default filter

[](#change-default-filter)

There is 'esc\_html' function is implemented to text by default. You can change it with next code:

```
/**
 * Remove default filter
 */
remove_filter( 'the_customizable_text_value', '_the_customizable_text_value' );
/**
 * Lets use e.g. 'esc_url' as filter
 */
add_filter( 'the_customizable_text_value', function () {
    return is_bool( $value ) ? $value : esc_url( $value );
} );

```

Demo
----

[](#demo)

[https://youtu.be/pCT5\_stDPYM](https://youtu.be/pCT5_stDPYM)

Notes
-----

[](#notes)

- If you do not add setting in Customizer with your code, it will be stored in section which is called 'Customizable Options' by default
- Label of control in Customizer will be generated from option name by default, e.g. 'customizable\_option' =&gt; 'Customizable Option'

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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/140b1fed534bfa64415245bca42fda8d68fc5ad88000832f7995afcc015fc058?d=identicon)[kuliebiakin](/maintainers/kuliebiakin)

---

Top Contributors

[![kuliebiakin](https://avatars.githubusercontent.com/u/6066592?v=4)](https://github.com/kuliebiakin "kuliebiakin (14 commits)")[![Viktor777](https://avatars.githubusercontent.com/u/32198859?v=4)](https://github.com/Viktor777 "Viktor777 (2 commits)")

### Embed Badge

![Health badge](/badges/viktor777-wp-customizable-options/health.svg)

```
[![Health](https://phpackages.com/badges/viktor777-wp-customizable-options/health.svg)](https://phpackages.com/packages/viktor777-wp-customizable-options)
```

PHPackages © 2026

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