All Projects → WebMaestroFr → wm-settings

WebMaestroFr / wm-settings

Licence: other
Based on the WordPress Settings API, this class generates options pages. It supports all basic input types, selects and all, but also media uploads, which is quite neat.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to wm-settings

geo-query
WordPress plugin: Geo Query - Modify the WP_Query/WP_User_Query to support the geo_query parameter. Uses the Haversine SQL implementation by Ollie Jones. With a Rest API example and support for an existing custom table .
Stars: ✭ 63 (+200%)
Mutual labels:  wordpress-plugin
react-declarative
A React form builder which interacts with a JSON endpoint to generate nested 12-column grids with input fields and automatic state management in a declarative style. Endpoint is typed by TypeScript guards (IntelliSense available). This tool is based on material-ui components, so your application will look beautiful on any device...
Stars: ✭ 17 (-19.05%)
Mutual labels:  form-builder
acf-vimeo-pro-data
Vimeo PRO Data field for Advanced Custom Fields v5
Stars: ✭ 14 (-33.33%)
Mutual labels:  wordpress-plugin
Profit-Trailer-Settings
Settings for Profit Trailer bot
Stars: ✭ 20 (-4.76%)
Mutual labels:  settings
Better-Fox
An up-to-date user.js to speed up and secure Firefox
Stars: ✭ 158 (+652.38%)
Mutual labels:  settings
device-mockups
No longer mirroring this repo with .org
Stars: ✭ 27 (+28.57%)
Mutual labels:  wordpress-plugin
bulk-delete
Bulk Delete is a WordPress Plugin that allows you to delete posts, pages and users in bulk based on different conditions and filters.
Stars: ✭ 31 (+47.62%)
Mutual labels:  wordpress-plugin
commons-booking
Wordpress plugin for managing and booking of common goods. New Version 2: https://github.com/wielebenwir/commonsbooking
Stars: ✭ 24 (+14.29%)
Mutual labels:  wordpress-plugin
mautic-wordpress
Wordpress Plugin
Stars: ✭ 104 (+395.24%)
Mutual labels:  wordpress-plugin
block-navigation
Sidebar with the current post blocks and some tools to facilitate the editing process in the Gutenberg editor.
Stars: ✭ 16 (-23.81%)
Mutual labels:  wordpress-plugin
wp-offline
Use WordPress without all online-checks. Deactivate autoupdate for core, plugins and themes
Stars: ✭ 47 (+123.81%)
Mutual labels:  wordpress-plugin
acf-typography
A Typography Add-on for the Advanced Custom Fields Plugin
Stars: ✭ 14 (-33.33%)
Mutual labels:  wordpress-plugin
wordpress-vanilla
Official WordPress plugin for Vanilla Forums integration.
Stars: ✭ 18 (-14.29%)
Mutual labels:  wordpress-plugin
flexible-templates
Allows saving templates of the "Flexible Content" field, for easy and fast use of them on other pages.
Stars: ✭ 36 (+71.43%)
Mutual labels:  wordpress-plugin
import-products-from-gsheet-for-woo-importer
Import products from Google spreadsheet by standard woocommerce import.
Stars: ✭ 16 (-23.81%)
Mutual labels:  wordpress-plugin
icon-block
A simple little WordPress block that allows you add an SVG icon or graphic to your website.
Stars: ✭ 24 (+14.29%)
Mutual labels:  wordpress-plugin
plugin-unit-test-demo
Sample WordPress plugin to illustrate unit tests
Stars: ✭ 17 (-19.05%)
Mutual labels:  wordpress-plugin
Post-Series
a wordpress plugin for post series support
Stars: ✭ 16 (-23.81%)
Mutual labels:  wordpress-plugin
repeater2-for-gravity-forms
A Gravity Forms add-on that allows specified groups of fields to be repeated by the user.
Stars: ✭ 19 (-9.52%)
Mutual labels:  wordpress-plugin
bookmark-manager
WordPress plugin for managing bookmarks
Stars: ✭ 15 (-28.57%)
Mutual labels:  wordpress-plugin

Synopsis

Based on the WordPress Settings API, a class to generate options pages. Create settings forms with all basic input types, selects, textareas and media uploads.

Basic Example

// Define the page
$my_page = create_settings_page(
  'my_page_id',
  __( 'My Page' ),
  array(
    'title' => __( 'My Menu' )
  ),
  array(
    'my_setting_id' => array(
      'title'       => __( 'My Setting' ),
      'description' => __( 'This is my section description.' ),
      'fields'      => array(
        'my_option_name' => array(
          'label'        => __( 'My Option' ),
          'description'  => __( 'This is my field description.' )
        )
      )
    )
  )
);

// Access the values
$my_value = get_setting( 'my_setting_id', 'my_option_name' );

Motivation

Settings are really useful to provide an easy configuration of themes and plugins to our users within their administration panel. But the creation of options pages often ends up in a messy and repetitive use of the great WordPress Settings API.

Considering generic form fields, this is a class to clean and simplify the process. It’s something light that shall be used on the admin side.

Installation

  1. Download the last release
  2. Unzip it into your theme or plugin
  3. require_once( 'path/to/wm-settings/plugin.php' );

Documentation

Read the documentation.

Contributors

If you are interested by this project, please feel free to contribute in any way you like.

You can contact @WebmaestroFR on twitter.

License

WTFPL – Do What the Fuck You Want to Public License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].