WordPress 的主题选项 UI 构建器 。 为免费或溢价主题创建和保存主题选项和Meta Boxs的简单方法.
Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
Contributors: valendesigns
Tags: options, theme options, meta boxes, settings
Requires at least: 3.8
Tested up to: 5.2
Stable tag: 2.7.3
License: GPLv2 or later
Donate link: https://bit.ly/2TBvksV
Requires PHP: 5.3.0
OptionTree attempts to bridge the gap between WordPress developers, designers and end-users by creating fully responsive option panels and meta boxes with an ease unlike any other plugin. OptionTree has many advanced features with well placed hooks and filters to adjust every aspect of the user experience.
Build your Theme Options panel locally with an easy to use drag & drop interface and then export a functioning theme-options.php file for production use that is i18n translation ready, with your custom text domain automatically inserted.
And, in just a few simple lines of code, save settings to the database with a unique array ID so none of your Theme Options conflict with other themes that use OptionTree.
Also, OptionTree now takes full advantage of the new color schemes introduced in WordPress 3.8, it looks and feels built-in.
If you're like me, you want to know how everything works. Download and activate the OptionTree Theme and see first hand how to integrate OptionTree into your own project. I'll walk you through installing OptionTree and you'll get a chance to see all the various options and filters first hand and in the wild.
To contribute or report bugs, please go to the OptionTree Github repository.
OptionTree is a project partly sponsored by ThemeForest, the largest WordPress theme marketplace on the web.
This is a complete list of all the available option types that come shipped with OptionTree.
Plugin Mode
option-tree to the /wp-content/plugins/ directoryPlugins menu in WordPressOptionTree->Documentation link in the WordPress admin sidebar menu for further setup assistance.Theme Mode
.zip directory.option-tree directory in the root of your theme. For example, the server path would be /wp-content/themes/theme-name/option-tree/.functions.php./**
* Required: set 'ot_theme_mode' filter to true.
*/
add_filter( 'ot_theme_mode', '__return_true' );
/**
* Required: include OptionTree.
*/
require( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' );For a list of all the OptionTree UI display filters refer to the demo-functions.php file found in the /assets/theme-mode/ directory of this plugin. This file is the starting point for developing themes with Theme Mode.
There sure is, and I'm glad you asked. Download and activate the OptionTree Theme and get some experience setting up OptionTree on your own with detailed directions and tips.
The most likely scenario is your theme already has OptionTree installed in Theme Mode. And since the plugin and theme version can't both be active at the same time without the sky falling on your head, your site has decided to throw in the towel. If that's not your issue, open up a support request and we'll figure it out together. UPDATE: As of OptionTree 2.4.0 the plugin version will not conflict with the Theme Mode version if they are both 2.4.0 or higher.
+ bypass and PHP serialized classes. props @erwanlrunfiltered_html iframe capabilities to support additional style attributes._sanitize_recursive(). props @shrameeiframe supports the style attribute for users with unfiltered_html capabilities.noscript is supported for users with unfiltered_html capabilities.ot_validate_setting_input_safe which is used to validate the input value of a custom setting type. All values must be validated!create_function notice in PHP 7.2+. props @modesthatredwordpress-plugin project type to composer file. props @egiffordadd_list_item & add_social_links Ajax requests.global_admin_css so it's only enqueued when needed.dynamic.css so that a child theme doesn't load the styles saved to the parent theme.ot_recognized_post_format_meta_boxes to support additional post formats meta boxes. props @BassemNot_do_settings_fields_before & ot_do_settings_fields_after. props @BassemN, @valendesigns0 value to be saved with certain option types. Contributors via github @BassemN.ot_load_dynamic_css to explicitly turn the feature off if desired.dynamic.css created with other themes from being loaded elsewhere.add_query_arg by escaping it.inherit fallback to the border option type in dynamic.css.none fallback to the box-shadow option type in dynamic.css.inherit fallback to the colorpicker option type in dynamic.css.inherit fallback to the colorpicker-opacity option type in dynamic.css.ot_insert_css_with_markers_fallback to filter the dynamic.css fallback value.ot_type_radio_image_attributes to filter the image attributes for each radio choice. Contributors via github @BassemN, and @valendesigns.ot_insert_css_with_markers to remove confusing & unnecessary PHP statements and fix whitespace.ot_insert_css_with_markers where the $option_type variable was not being set properly.inherit fallback to the link-color option type in dynamic.css.$.browser.msie JS error caused by function being deprecated.hover to mouseenter mouseleave to stop jQuery migrate error message.ot-google-fonts-css enqueue.not-sortable class to the List Item option type will remove the sortable feature for that option.ot-colorpicker-opacity class.esc_url_raw to filter the Upload option type when it's saving an attachment ID. Contributors via github @RistoNiinemets.dynamic.css file. Contributors via github @johnh10, and @valendesigns.ot_google_fonts array to be rebuilt when switching between themes.add_menu_page in ot-cleanup-api.php.change or clear.register_post_type() function being used in Theme Mode.sanitize_text_field to esc_url_raw for the Upload option type.暂无开放 Issues,或尚未同步最近议题。