Цей плагін не перевірявся з останніми 3-ма основними випусками WordPress. Можливо, він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності при використанні з більш новими версіями WordPress.

WordPress Options

Опис

WordPress Options is a free WordPress plugin specifically directed at designers and developers who wish to easily and quickly add options to their WordPress products with minimal code while at the same time providing a lot of features for power developers to extend the way the options behave.

Eager to get started using the plugin and write some code to see it in action?

Just hop directly into the introductory tutorial! The most efficient way to learn is by experiment. Also make sure you stay tuned for more tutorials in the future. You can ensure you won’t miss any by following us!

If you then also decide you want to provide an intuitive interface in your options panels for your users to easily install premium addons, you might want to consider purchasing the Addon Installer.

The plugin provides many different option types that cover most of any designer/developer requirements. The list of option types so far: boolean, text, integer, decimal, color, image, video, media, style, script, user, author, category, page, tag-list, options-page, options-section, addon.

Features

  • Creates all Options UI elements automatically
  • Automatic submission and storage for options
  • Uses WordPress Settings API for maximum compatibility
  • Built-in value type validation ensures reliability and security
  • Multiple option types to select all kinds of data
  • Includes option types for WordPress-specific data
  • Supports custom validation for all option types
  • Options pages can be placed anywhere in the admin menu
  • Callback system to dynamically change item data
  • Optional addon that allows authors to sell their own addons

Related Links:

Скріншоти

  • An example of very basic code to create your options pages
  • This is the resulting options page created automatically with the code in the image above
  • An example code snippet on how to define your own custom (premium) addon option field
  • What the WordPress Options framework will create automatically for your custom addon code above

Встановлення

Please look at the introductory tutorial
Also the free Stripefolio theme provides a very good and complete real world example on how to use the WordPress Options framework in your own themes or plugins

Часті питання

How can I see this framework in action?

Have a look at the free Stripefolio theme which provides a very good and complete real world example on how to use the WordPress Options framework in your own themes or plugins

How does the code look like?

$test_options = array(
‘show_tips’ => array(
‘default’ => false,
‘label’ => __(‘Show Tips’, ‘my-test’)
),
‘background_image’ => array(
‘type’ => ‘image’,
‘label’ => __(‘Background Image’, ‘my-test’)
),
‘header_logo_image’ => array(
‘type’ => ‘image’,
‘label’ => __(‘Logo Image’, ‘my-test’),
‘tip’ => __(‘Maximum size is 1024×150 pixels’, ‘my-test’)
)
);

synved_option_register('my_test', $test_options);

Відгуки

Для цього плагіна немає відгуків.

Учасники та розробники

“WordPress Options” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники

Перекладіть “WordPress Options” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.

Журнал змін

1.4.5

  • Fix to reduce potential conflicts with other plugins using jQuery UI

1.4.4

  • Fixed some warnings and notices

1.4.3

  • Added usage of module property
  • Move addons automatically when upgrading to ensure they are kept
  • Other misc fixes

1.4.2

  • Add link-target item property to link plugins to settings

1.4.1

  • Adjusted callback system
  • Rendering now supports context
  • Fixes and cleanups

1.3.9

  • First public release.