mundschenk-at/wp-settings-ui

An object oriented interface to the WordPress Settings API

v1.1.1 2019-02-10 22:37 UTC

This package is auto-updated.

Last update: 2024-11-11 15:42:28 UTC


README

A library providing an object-oriented interface to the WordPress Settings API.

Features

  • A WordPress plugin's settings page can be specified as an array of textual properties.
  • A plugin can provide additional custom controls by implementing the Mundschenk\UI\Control interface.
  • Standard controls included with the library:
    • Checkbox (Mundschenk\UI\Controls\Checkbox_Input),
    • Text field (Mundschenk\UI\Controls\Text_Input),
    • Number field (Mundschenk\UI\Controls\Number_Input),
    • Hidden field (Mundschenk\UI\Controls\Hidden_Input),
    • Submit button (Mundschenk\UI\Controls\Submit_Input),
    • Select box (Mundschenk\UI\Controls\Select),
    • Plain text (Mundschenk\UI\Controls\Display_Text), and
    • Text Area (Mundschenk\UI\Controls\Textarea).