The Site Options plugin is a simple and free product for adding your custom site options on default page Settings -> Reading.
Puanlar
Son güncellenme
March 5, 2017
Sürüm
1.2.1
Aktif kurulumlar
20
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 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
  • select
  • email
  • image
  • gallery
  • colorpicker
ÜcretsizCreator paketinde
Yükleme işlemini tamamlayarak, WordPress.com'un Hizmet Şartları ile Üçüncü Taraf Eklenti Şartlarını kabul etmiş olursunuz.
Aktif kurulumlar
20
Test edilen son sürüm
4.7.29
Bu eklenti, WordPress tarafından barındırılan kurulumunuzda kullanılmak üzere indirilebilir.