PHPackages                             twindigital/wordpress-settings-api-class - 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. twindigital/wordpress-settings-api-class

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

twindigital/wordpress-settings-api-class
========================================

WordPress settings API Abstraction Class

v1.3(9y ago)22.0k1GPLv2PHPPHP &gt;=5.2.4

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/TwinDigital/wordpress-settings-api-class)[ Packagist](https://packagist.org/packages/twindigital/wordpress-settings-api-class)[ Docs](https://github.com/tareq1988/wordpress-settings-api-class)[ RSS](/packages/twindigital-wordpress-settings-api-class/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

What is this?
-------------

[](#what-is-this)

It's a PHP class wrapper for handling WordPress [Settings API](http://codex.wordpress.org/Settings_API). Gives a very handy way to build theme or plugins option panel.

Package Installation (via Composer)
-----------------------------------

[](#package-installation-via-composer)

To install this package, edit your `composer.json` file:

```
{
    "require": {
        "tareq1988/wordpress-settings-api-class": "dev-master"
    }
}
```

Now run:

`$ composer install`

Usage Example
-------------

[](#usage-example)

Checkout the [examples](https://github.com/tareq1988/wordpress-settings-api-class/tree/master/example) folder for OOP and procedural example. They were called in [plugin.php](https://github.com/tareq1988/wordpress-settings-api-class/blob/master/plugin.php) file.

A detailed tutorial can be found [here](https://tareq.co/2012/06/wordpress-settings-api-php-class/).

#### Retrieving saved options

[](#retrieving-saved-options)

```
/**
 * Get the value of a settings field
 *
 * @param string $option settings field name
 * @param string $section the section name this field belongs to
 * @param string $default default text if it's not found
 *
 * @return mixed
 */
function prefix_get_option( $option, $section, $default = '' ) {

    $options = getOption( $section );

    if ( isset( $options[$option] ) ) {
        return $options[$option];
    }

    return $default;
}
```

Screenshot
----------

[](#screenshot)

[![Option Panel](https://github.com/tareq1988/wordpress-settings-api-class/raw/master/screenshot-1.png "The options panel build on the fly using the PHP Class")](https://github.com/tareq1988/wordpress-settings-api-class/raw/master/screenshot-1.png)

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

#### What this plugin for?

[](#what-this-plugin-for)

It's mainly a plugin that demonstrates the Settings API PHP class

#### Whats the facility?

[](#whats-the-facility)

A plugin or theme developer can build their options panel with Settings API easily

#### What is Settings API ?

[](#what-is-settings-api-)

Settings API is a functionality from WordPress that helps developers to save their options data very easily and securely. More about [Settings API](http://codex.wordpress.org/Settings_API).

Changelog:
----------

[](#changelog)

```
v1.3 (27 September, 2016)
------------------------
- [new] Placeholder support for text and textarea input
- [new] min, max and step support for number field
- [fix] Empty multicheck saving warning
- [improved] Don't show the navigation if only one section exists

v1.1 (23 April, 2015)
------------------------
- [new] Folder structure updated
- [new] composer support added
- [new] Number field added
- [new] URL field added
- [improved] wysiwyg field responsive support. Allow to pass options to wp_editor
- [new] WP Media uploader added

v1.0 (16 July, 2014)
------------------------
- [new] color, password and wysiwyg example added on plugin settings
- [new] Color Picker added
- [improved] Allow to set description for section
- Some other old fixes ;)

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~261 days

Total

3

Last Release

3516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/275918815bf4cecb7fddc5689eebb64640a4b4eeecb8e62832abcf9139420347?d=identicon)[twindigital](/maintainers/twindigital)

![](https://www.gravatar.com/avatar/880ca246d0d44cddcc4205bee4e8db7b60789ef1216ae1396ad5939df58273e6?d=identicon)[L00Cyph3r](/maintainers/L00Cyph3r)

---

Top Contributors

[![tareq1988](https://avatars.githubusercontent.com/u/153669?v=4)](https://github.com/tareq1988 "tareq1988 (91 commits)")[![rinatkhaziev](https://avatars.githubusercontent.com/u/459254?v=4)](https://github.com/rinatkhaziev "rinatkhaziev (15 commits)")[![roidayan](https://avatars.githubusercontent.com/u/660126?v=4)](https://github.com/roidayan "roidayan (15 commits)")[![L00Cyph3r](https://avatars.githubusercontent.com/u/10772371?v=4)](https://github.com/L00Cyph3r "L00Cyph3r (8 commits)")[![jeremyclark13](https://avatars.githubusercontent.com/u/744783?v=4)](https://github.com/jeremyclark13 "jeremyclark13 (3 commits)")[![candypaint](https://avatars.githubusercontent.com/u/2077407?v=4)](https://github.com/candypaint "candypaint (3 commits)")[![ahmedofali](https://avatars.githubusercontent.com/u/22732463?v=4)](https://github.com/ahmedofali "ahmedofali (1 commits)")[![manchumahara](https://avatars.githubusercontent.com/u/204452?v=4)](https://github.com/manchumahara "manchumahara (1 commits)")[![ericfernance](https://avatars.githubusercontent.com/u/9042878?v=4)](https://github.com/ericfernance "ericfernance (1 commits)")[![daankortenbach](https://avatars.githubusercontent.com/u/33928955?v=4)](https://github.com/daankortenbach "daankortenbach (1 commits)")[![rkbhochalya](https://avatars.githubusercontent.com/u/12229032?v=4)](https://github.com/rkbhochalya "rkbhochalya (1 commits)")[![chiqui3d](https://avatars.githubusercontent.com/u/2461400?v=4)](https://github.com/chiqui3d "chiqui3d (1 commits)")[![sabbir1991](https://avatars.githubusercontent.com/u/2692939?v=4)](https://github.com/sabbir1991 "sabbir1991 (1 commits)")[![manzoorwanijk](https://avatars.githubusercontent.com/u/18226415?v=4)](https://github.com/manzoorwanijk "manzoorwanijk (1 commits)")[![herewithme](https://avatars.githubusercontent.com/u/898608?v=4)](https://github.com/herewithme "herewithme (1 commits)")

---

Tags

wordpresswpsettings-api

### Embed Badge

![Health badge](/badges/twindigital-wordpress-settings-api-class/health.svg)

```
[![Health](https://phpackages.com/badges/twindigital-wordpress-settings-api-class/health.svg)](https://phpackages.com/packages/twindigital-wordpress-settings-api-class)
```

###  Alternatives

[tareq1988/wordpress-settings-api-class

WordPress settings API Abstraction Class

46611.1k3](/packages/tareq1988-wordpress-settings-api-class)[justcoded/wordpress-theme-boilerplate

WordPress theme boilerplate with better code structure and OOP support.

563.9k1](/packages/justcoded-wordpress-theme-boilerplate)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

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