Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

WP Site Options

The Site Options plugin is a simple and free product for adding your custom site options on default page Settings -> Reading. Just add a few lines

The Site Options plugin is a simple and free product for adding your custom site options on default page Settings -> Reading. Just define needed settings in your functions file. More instructions.

Adding your custom options

    add_action( 'init', 'custom__site_options', 10 );
    function custom__site_options(){
        global $wpto;
        if ( $wpto )
        $wpto->fields = array ( 
            'section_one'   =>  array( array( 'Header - First Settings', 'description will come' ), array(
                'f_number'  => array( 'number', 'A Number' ),
                'f_text'    => array( 'text', 'Simple text' ),
                )),
            'section_two'   =>  array( array( 'Header - Additional settings', 'description will soon' ), array(
                'f_gallery' => array( 'gallery', 'Awesome gallery' ),
                'f_chbox'   => array( 'checkbox', 'Are u checked?' ),
                )),
        );  
    }
 

Access in the theme files

        global $wpto;
        echo $wpto->getOption( 'section_one::f_text' ) ;
 

Field types support

  • text
  • textarea
  • wysiwyg
  • checkbox
  • number
  • email
  • image
  • gallery
  • colorpicker
Author Игорь Тронь
Profile
Contributors hokku
Tags options, settings, settings page, site options, theme options
  1. wp-site-options screenshot 1

    Define your custom fields in your file function's.

  2. wp-site-options screenshot 2

    Allow to Settings - Reading and specify field values.

  1. Just setup and activate the plugin through the 'Plugins - Add' menu in WordPress

How do I create settings for my own theme?

Please, read instructions.

What types options are available to use?

  • text
  • textarea
  • wysiwyg
  • checkbox
  • select
  • number
  • email
  • image
  • gallery
  • colorpicker

You can define custom fieldtype by special filter, if no one this types was detected, see inc/fields.php, filter 'wpto_echo_field'.

Share  
Download
Version 1.0.3

Requires WordPress version: 4.0 or higher

Compatible up to: 4.7.2

Last Updated 11 Feb 2017

Date Added: 09 Feb 2017

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
31 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0